From b719f52935746972298f793127da91089c6c5876 Mon Sep 17 00:00:00 2001 From: Fabio Anselmo Date: Mon, 18 Feb 2019 18:50:59 -0500 Subject: [PATCH] add ruby support for syntax highlighting --- packages/@vuepress/markdown/lib/highlight.js | 3 +++ 1 file changed, 3 insertions(+) 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' }