Skip to content

Commit dad2928

Browse files
fabioaanthonyulivz
authored andcommittedFeb 19, 2019
feat($theme-default): add ruby shortcut support for syntax highlighting (#1312)
1 parent 0d56a99 commit dad2928

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

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

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ module.exports = (str, lang) => {
2424
if (lang === 'md') {
2525
lang = 'markdown'
2626
}
27+
if (lang === 'rb') {
28+
lang = 'ruby'
29+
}
2730
if (lang === 'ts') {
2831
lang = 'typescript'
2932
}

0 commit comments

Comments
 (0)
Please sign in to comment.