Skip to content

Commit

Permalink
Update highlight.js API usage
Browse files Browse the repository at this point in the history
  • Loading branch information
alesandroortiz authored Nov 12, 2021
1 parent ee5fbe1 commit 48f1ded
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/markdownSyntaxHighlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ module.exports = function(str, language) {
html = str;
} else {
html = 'test';
html = hljs.highlight(language, str).value;
html = hljs.highlight(str, {language: language}).value;
}

return `<pre class="language-${language}"><code class="language-${language}">${html}</code></pre>`;
};
};

0 comments on commit 48f1ded

Please sign in to comment.