Skip to content

Commit

Permalink
fix wrong CSS language prefix for fenced blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey committed Jul 9, 2018
1 parent 310cdb4 commit 05d3e04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core/renderMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 05d3e04

Please sign in to comment.