mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-08 21:06:42 +10:00
feat($markdown): Support for Rust file extension
This commit is contained in:
@@ -23,7 +23,8 @@ function getLangCodeFromExtension (extension) {
|
||||
sh: 'bash',
|
||||
yml: 'yaml',
|
||||
styl: 'stylus',
|
||||
kt: 'kotlin'
|
||||
kt: 'kotlin',
|
||||
rs: 'rust'
|
||||
}
|
||||
|
||||
return extensionMap[extension] || extension
|
||||
|
||||
Reference in New Issue
Block a user