fix to make mathjax work in notebook page

This commit is contained in:
Pim Nelissen
2026-01-28 15:07:58 +01:00
parent 2551f854d6
commit 14e49e63aa
2 changed files with 5 additions and 5 deletions

View File

@ -1,12 +1,11 @@
window.MathJax = { window.MathJax = {
tex: { tex: {
inlineMath: [["\\(", "\\)"]], inlineMath: [['$', '$'], ["\\(", "\\)"]],
displayMath: [["\\[", "\\]"]], displayMath: [['$$', '$$'], ["\\[", "\\]"]],
processEscapes: true, processEscapes: true,
processEnvironments: true processEnvironments: true
}, },
options: { options: {
ignoreHtmlClass: ".*|",
processHtmlClass: "arithmatex" processHtmlClass: "arithmatex"
} }
}; };

View File

@ -33,10 +33,11 @@ markdown_extensions:
extra_javascript: extra_javascript:
- javascripts/mathjax.js - javascripts/mathjax.js
- https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js - https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
plugins: plugins:
- mkdocs-jupyter - mkdocs-jupyter:
execute: false
- mkdocstrings: - mkdocstrings:
enabled: !ENV [ENABLE_MKDOCSTRINGS, true] enabled: !ENV [ENABLE_MKDOCSTRINGS, true]
default_handler: python default_handler: python