diff --git a/packages/@vuepress/markdown/lib/highlight.js b/packages/@vuepress/markdown/lib/highlight.js index 1d3e148967..ea974db112 100644 --- a/packages/@vuepress/markdown/lib/highlight.js +++ b/packages/@vuepress/markdown/lib/highlight.js @@ -24,6 +24,9 @@ module.exports = (str, lang) => { if (lang === 'md') { lang = 'markdown' } + if (lang === 'rb') { + lang = 'ruby' + } if (lang === 'ts') { lang = 'typescript' }