diff --git a/javascripts/katex.js b/javascripts/katex.js new file mode 100644 index 000000000..0946ce0a8 --- /dev/null +++ b/javascripts/katex.js @@ -0,0 +1,10 @@ +document$.subscribe(({ body }) => { + renderMathInElement(body, { + delimiters: [ + { left: "$$", right: "$$", display: true }, + { left: "$", right: "$", display: false }, + { left: "\\(", right: "\\)", display: false }, + { left: "\\[", right: "\\]", display: true }, + ], + }); +}); diff --git a/javascripts/mathjax.js b/javascripts/mathjax.js new file mode 100644 index 000000000..117b04607 --- /dev/null +++ b/javascripts/mathjax.js @@ -0,0 +1,16 @@ +window.MathJax = { + tex: { + inlineMath: [["\\(", "\\)"]], + displayMath: [["\\[", "\\]"]], + processEscapes: true, + processEnvironments: true, + }, + options: { + ignoreHtmlClass: ".*|", + processHtmlClass: "arithmatex", + }, +}; + +document$.subscribe(() => { + MathJax.typesetPromise(); +}); diff --git a/sitemap.xml.gz b/sitemap.xml.gz index 789ebfdb5..f64180a61 100644 Binary files a/sitemap.xml.gz and b/sitemap.xml.gz differ