Repository navigation
Commit 79f1d28
committed
docs: render math in Jupyter notebooks (MathJax dollar delimiters)
The MathJax config only processed pymdownx.arithmatex spans (\(...\) on .md
pages). mkdocs-jupyter emits notebook markdown math as raw $...$, which was
neither delimited nor allowed to be processed, so it showed as literal text.
Accept both delimiter styles (\(...\)/\[...\] for arithmatex, $...$/$$...$$
for notebooks) and drop the arithmatex-only processHtmlClass restriction so
MathJax scans the whole page (it still skips <pre>/<code>, so $ in code is
untouched). Both .md and notebook math now render.1 parent 9288e6f commit 79f1d28
1 file changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | 8 | | |
4 | | - | |
5 | | - | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
0 commit comments