Skip to content

Commit

Permalink
feat($markdown): Support for Rust file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
torepettersen authored and kefranabg committed Nov 8, 2019
1 parent 2a772ff commit 73089a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@vuepress/markdown/lib/highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ function getLangCodeFromExtension (extension) {
sh: 'bash',
yml: 'yaml',
styl: 'stylus',
kt: 'kotlin'
kt: 'kotlin',
rs: 'rust'
}

return extensionMap[extension] || extension
Expand Down

0 comments on commit 73089a0

Please sign in to comment.