Skip to content

Commit 476c00b

Browse files
committed
1 parent 9c092c5 commit 476c00b

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

docs/javascript/mathjax.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
window.MathJax = {
2+
tex: {
3+
inlineMath: [["\\(", "\\)"]],
4+
displayMath: [["\\[", "\\]"]],
5+
processEscapes: true,
6+
processEnvironments: true
7+
},
8+
options: {
9+
ignoreHtmlClass: ".*|",
10+
processHtmlClass: "arithmatex"
11+
}
12+
};
13+
14+
document$.subscribe(() => {
15+
MathJax.typesetPromise()
16+
})

mkdocs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ markdown_extensions:
3636
alternate_style: true
3737
- toc:
3838
permalink: true
39+
- pymdownx.arithmatex:
40+
generic: true
3941
plugins:
4042
- search
4143
- awesome-pages
@@ -54,4 +56,8 @@ extra:
5456
api_key: !ENV POSTHOG_API_KEY
5557
api_host: !ENV POSTHOG_API_HOST
5658
extra_css:
57-
- stylesheets/extra.css
59+
- stylesheets/extra.css
60+
extra_javascript:
61+
- javascripts/mathjax.js
62+
- https://polyfill.io/v3/polyfill.min.js?features=es6
63+
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js

0 commit comments

Comments
 (0)