Skip to content

Commit e39857e

Browse files
authored
feat: support .svg file icon in code block titles (#2324)
1 parent 2c860ee commit e39857e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/client/internals/TitleIcon.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const builtinIcons: Record<string, string> = {
6161
'.yml': 'i-vscode-icons:file-type-light-yaml',
6262
'.yaml': 'i-vscode-icons:file-type-light-yaml',
6363
'.php': 'i-vscode-icons:file-type-php',
64+
'.svg': 'i-vscode-icons:file-type-svg',
6465
}
6566
6667
function matchIcon(title: string) {

0 commit comments

Comments
 (0)