this is for holding javascript data
Beni Cherniavsky-Paskin katex: render into new node instead of into the script (where its invisible).
over 9 years ago
Commit id: 2134d0f14a8bfee1418ca0e5e1a98dbde8914588
deletions | additions
diff --git a/_layouts/katex.html b/_layouts/katex.html
index 039a070..a410b9d 100644
--- a/_layouts/katex.html
+++ b/_layouts/katex.html
...
if (script.type.match(/^math\/tex/)) {
var text = script.text === "" ? script.innerHTML : script.text;
if (script.type.match(/mode\s*=\s*display/)) {
katex.render("\displaymode{" text = "\displaymode{" + text +
"}", script);
} else {
katex.render(text, script); "}";
}
script.insertAdjacentHTML("beforebegin", katex.renderToString(text));
}
}