Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/utils/file-icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ const FILENAME_ICONS: Record<string, string> = {
'README': 'i-vscode-icons-file-type-markdown',
'README.md': 'i-vscode-icons-file-type-markdown',
'readme.md': 'i-vscode-icons-file-type-markdown',
'Readme.md': 'i-vscode-icons-file-type-markdown',
'README.markdown': 'i-vscode-icons-file-type-markdown',
'readme.markdown': 'i-vscode-icons-file-type-markdown',
'CHANGELOG': 'i-vscode-icons-file-type-markdown',
'CHANGELOG.md': 'i-vscode-icons-file-type-markdown',
'changelog.md': 'i-vscode-icons-file-type-markdown',
Expand Down
2 changes: 1 addition & 1 deletion server/api/registry/readme/[...pkg].get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function fetchReadmeFromJsdelivr(
packageName: string,
version?: string,
): Promise<string | null> {
const filenames = ['README.md', 'readme.md', 'Readme.md', 'README', 'readme']
const filenames = ['README.md', 'readme.md', 'Readme.md', 'README', 'readme', 'README.markdown', 'readme.markdown']
const versionSuffix = version ? `@${version}` : ''

for (const filename of filenames) {
Expand Down
1 change: 1 addition & 0 deletions server/utils/code-highlight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const FILENAME_MAP: Record<string, string> = {
'CHANGELOG.md': 'markdown',
'README': 'markdown',
'README.md': 'markdown',
'README.markdown': 'markdown',
}

/**
Expand Down
Loading