diff options
Diffstat (limited to 'docs/layouts/partials/math.html')
-rw-r--r-- | docs/layouts/partials/math.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/layouts/partials/math.html b/docs/layouts/partials/math.html new file mode 100644 index 000000000..b1eb5c8db --- /dev/null +++ b/docs/layouts/partials/math.html @@ -0,0 +1,16 @@ +<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script> +<script> + MathJax = { + tex: { + inlineMath: [['$', '$'], ['\\(', '\\)']], // inline + displayMath: [['$$', '$$'], ['\\[', '\\]']] // block + }, + startup: { + pageReady: () => { + return MathJax.startup.defaultPageReady().then(() => { + document.body.classList.remove("dn"); + }); + } + } + }; +</script> |