highlight.js changes update

Wed, 08 Dec 2021 23:32:16 +0200

author
Tuomo Valkonen <tuomov@iki.fi>
date
Wed, 08 Dec 2021 23:32:16 +0200
changeset 40
458b3ce6e2f2
parent 39
5fc5f93a8cad
child 41
8040d3a298e4

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 '';

mercurial