aboutsummaryrefslogtreecommitdiff
path: root/docs/_javascript/mathjax.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/_javascript/mathjax.js')
-rw-r--r--docs/_javascript/mathjax.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/_javascript/mathjax.js b/docs/_javascript/mathjax.js
new file mode 100644
index 000000000..a80ddbff7
--- /dev/null
+++ b/docs/_javascript/mathjax.js
@@ -0,0 +1,16 @@
+window.MathJax = {
+ tex: {
+ inlineMath: [["\\(", "\\)"]],
+ displayMath: [["\\[", "\\]"]],
+ processEscapes: true,
+ processEnvironments: true
+ },
+ options: {
+ ignoreHtmlClass: ".*|",
+ processHtmlClass: "arithmatex"
+ }
+};
+
+document$.subscribe(() => {
+ MathJax.typesetPromise()
+}) \ No newline at end of file