Skip to content

Commit

Permalink
updated highlight api call as per this �[200~highlightjs/highlight.js…
Browse files Browse the repository at this point in the history
  • Loading branch information
srix committed May 20, 2023
1 parent 6b58226 commit 6cd90c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $(document).ready(function() {
marked.setOptions({
highlight: function(code, lang) {
if (lang && hljs.getLanguage(lang)) {
return hljs.highlight(lang, code).value;
return hljs.highlight( code, {language: lang}).value;
} else {
return hljs.highlightAuto(code).value;
}
Expand Down

0 comments on commit 6cd90c7

Please sign in to comment.