diff --git a/packages/@vuepress/markdown/lib/highlight.js b/packages/@vuepress/markdown/lib/highlight.js index ea974db112..b1a4719017 100644 --- a/packages/@vuepress/markdown/lib/highlight.js +++ b/packages/@vuepress/markdown/lib/highlight.js @@ -39,6 +39,10 @@ module.exports = (str, lang) => { if (lang === 'yml') { lang = 'yaml' } + if (lang === 'styl') { + lang = 'stylus' + } + if (!prism.languages[lang]) { try { loadLanguages([lang])