Skip to content

Commit

Permalink
fix($markdown): treat styl as stylus language (#1433)
Browse files Browse the repository at this point in the history
  • Loading branch information
Barchiel authored and shigma committed Mar 13, 2019
1 parent 9c6a00b commit f44e2db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/@vuepress/markdown/lib/highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit f44e2db

Please sign in to comment.