Skip to content

Commit 73089a0

Browse files
torepettersenkefranabg
authored andcommitted
feat($markdown): Support for Rust file extension
1 parent 2a772ff commit 73089a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/@vuepress/markdown/lib/highlight.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ function getLangCodeFromExtension (extension) {
2323
sh: 'bash',
2424
yml: 'yaml',
2525
styl: 'stylus',
26-
kt: 'kotlin'
26+
kt: 'kotlin',
27+
rs: 'rust'
2728
}
2829

2930
return extensionMap[extension] || extension

0 commit comments

Comments
 (0)