Skip to content

Commit 6cd90c7

Browse files
committed
updated highlight api call as per this �[200~highlightjs/highlight.js#2277
1 parent 6b58226 commit 6cd90c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $(document).ready(function() {
1010
marked.setOptions({
1111
highlight: function(code, lang) {
1212
if (lang && hljs.getLanguage(lang)) {
13-
return hljs.highlight(lang, code).value;
13+
return hljs.highlight( code, {language: lang}).value;
1414
} else {
1515
return hljs.highlightAuto(code).value;
1616
}

0 commit comments

Comments
 (0)