Fix wrong CSS language prefix for fenced blocks (#842)

This commit is contained in:
Endilie Yacop Sucipto 2018-07-09 11:17:58 +08:00 committed by Yangshun Tay
parent 310cdb496e
commit 8cd4b4fca6

View file

@ -23,8 +23,8 @@ class MarkdownRenderer {
const md = new Markdown({
// Highlight.js expects hljs css classes on the code element.
// This results in <pre><code class="hljs css javascript">
langPrefix: 'hljs css languages- ',
// This results in <pre><code class="hljs css languages-jsx">
langPrefix: 'hljs css languages-',
highlight: function(str, lang) {
lang =
lang || (siteConfig.highlight && siteConfig.highlight.defaultLang);