Spaces:
Running
Running
Commit
·
a1e153e
1
Parent(s):
aa4fcd9
Enable mathjax
Browse files- docs/js/mathjax.js +16 -0
- mkdocs.yml +8 -1
docs/js/mathjax.js
ADDED
|
@@ -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
CHANGED
|
@@ -35,6 +35,11 @@ extra:
|
|
| 35 |
extra_css:
|
| 36 |
- stylesheets/extra.css
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
repo_url: https://github.com/MilesCranmer/PySR
|
| 39 |
|
| 40 |
plugins:
|
|
@@ -63,4 +68,6 @@ markdown_extensions:
|
|
| 63 |
anchor_linenums: True
|
| 64 |
- pymdownx.inlinehilite
|
| 65 |
- pymdownx.snippets
|
| 66 |
-
- pymdownx.superfences
|
|
|
|
|
|
|
|
|
| 35 |
extra_css:
|
| 36 |
- stylesheets/extra.css
|
| 37 |
|
| 38 |
+
extra_javascript:
|
| 39 |
+
- js/mathjax.js
|
| 40 |
+
- https://polyfill.io/v3/polyfill.min.js?features=es6
|
| 41 |
+
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
|
| 42 |
+
|
| 43 |
repo_url: https://github.com/MilesCranmer/PySR
|
| 44 |
|
| 45 |
plugins:
|
|
|
|
| 68 |
anchor_linenums: True
|
| 69 |
- pymdownx.inlinehilite
|
| 70 |
- pymdownx.snippets
|
| 71 |
+
- pymdownx.superfences
|
| 72 |
+
- pymdownx.arithmatex:
|
| 73 |
+
generic: true
|