Skip to content

Commit 68465f0

Browse files
1 parent a1ec24d commit 68465f0

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

docs/javascripts/mathjax.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
})
17+

mkdocs.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,21 @@ theme:
1818
accent: 'red'
1919

2020
extra_css:
21-
- 'stylesheets/extra.css'
21+
- stylesheets/extra.css
2222
extra_javascript:
23-
- 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML'
23+
- javascripts/mathjax.js
24+
- https://polyfill.io/v3/polyfill.min.js?features=es6
25+
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
26+
2427
markdown_extensions:
2528
- admonition
2629
- pymdownx.highlight:
2730
linenums: true
2831
linenums_style: table
2932
- pymdownx.superfences
3033
- pymdownx.inlinehilite
31-
- pymdownx.arithmatex
34+
- pymdownx.arithmatex:
35+
generic: true
3236
- footnotes
3337

3438
extra:

0 commit comments

Comments
 (0)