We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cf783e commit e78083aCopy full SHA for e78083a
web/markdown.js
@@ -50,6 +50,13 @@ function renderMarkdwon(markdownViewId, markdownFileURL) {
50
function () {
51
if (this.readyState == 4 && this.status == 200) {
52
const markdown = this.responseText;
53
+
54
+ marked.setOptions({
55
+ highlight: function (code, lang) {
56
+ return hljs.highlightAuto(code, [lang]).value;
57
+ }
58
+ });
59
60
const html = marked.parse(markdown);
61
document.getElementById(markdownViewId).innerHTML = html;
62
}
0 commit comments