this is for holding javascript data
Beni Cherniavsky-Paskin Final fix (need "\\", duh) for working jekyll -> KaTeX rendering.
over 9 years ago
Commit id: 5336af7046f50c3a2b713945d1534a6225add259
deletions | additions
diff --git a/README.md b/README.md
index 91c4a57..3fa16a0 100644
--- a/README.md
+++ b/README.md
...
Delimiters [recognized by kramdown](http://kramdown.gettalong.org/syntax.html#math-blocks):
inline $$ \frac{kram}{down} \sum_0^\infty $$
? text.
$$ \frac{kram}{down} \sum_0^\infty $$
diff --git a/_layouts/katex.html b/_layouts/katex.html
index a410b9d..788be8a 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/)) {
text =
"\displaymode{" "\\displaymode{" + text + "}";
}
script.insertAdjacentHTML("beforebegin", katex.renderToString(text));
}
diff --git a/katex.md b/katex.md
index 0e67fd8..8fec7bc 100644
--- a/katex.md
+++ b/katex.md
...
Delimiters [recognized by kramdown](http://kramdown.gettalong.org/syntax.html#math-blocks):
inline $$ \frac{kram}{down} \sum_0^\infty $$
? text.
$$ \frac{kram}{down} \sum_0^\infty $$