Correct Prism CSS class for code blocks (#870)

* Correct Prism CSS class for code blocks

* remove prism css theme that conflicts hljs theme
This commit is contained in:
Drew Ballance 2018-07-25 01:00:17 -05:00 committed by Endilie Yacop Sucipto
parent afec4bd47c
commit 0c09cc01cb
2 changed files with 2 additions and 22 deletions

View file

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