Wed, 08 Dec 2021 23:32:16 +0200
highlight.js changes update
markdown_it.js | file | annotate | diff | comparison | revisions |
--- a/markdown_it.js Mon Sep 07 09:15:21 2020 +0300 +++ b/markdown_it.js Wed Dec 08 23:32:16 2021 +0200 @@ -49,7 +49,7 @@ highlight: function (str, lang) { if (lang && hljs.getLanguage(lang)) { try{ - return hljs.highlight(lang, str).value; + return hljs.highlight(str, {language: lang}).value; } catch (__){} } return '';