Skip to content

Commit f44e2db

Browse files
Barchielshigma
Barchiel
authored andcommitted
fix($markdown): treat styl as stylus language (#1433)
1 parent 9c6a00b commit f44e2db

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/@vuepress/markdown/lib/highlight.js

+4
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ module.exports = (str, lang) => {
3939
if (lang === 'yml') {
4040
lang = 'yaml'
4141
}
42+
if (lang === 'styl') {
43+
lang = 'stylus'
44+
}
45+
4246
if (!prism.languages[lang]) {
4347
try {
4448
loadLanguages([lang])

0 commit comments

Comments
 (0)