diff --git a/packages/@vuepress/markdown/lib/highlight.js b/packages/@vuepress/markdown/lib/highlight.js index 5ba21b1920..af57356330 100644 --- a/packages/@vuepress/markdown/lib/highlight.js +++ b/packages/@vuepress/markdown/lib/highlight.js @@ -23,7 +23,8 @@ function getLangCodeFromExtension (extension) { sh: 'bash', yml: 'yaml', styl: 'stylus', - kt: 'kotlin' + kt: 'kotlin', + rs: 'rust' } return extensionMap[extension] || extension