[ x ]
Created
January 3, 2022 14:08
-
-
Save akhmerov/8cbb4aa3af32d318f3fda76ffb5bf603 to your computer and use it in GitHub Desktop.
Scrollbars in mkdocs-material display math
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.MathJax = { | |
tex: { | |
inlineMath: [["\\(", "\\)"]], | |
displayMath: [["\\[", "\\]"]], | |
processEscapes: true, | |
processEnvironments: true | |
}, | |
options: { | |
ignoreHtmlClass: ".*|", | |
processHtmlClass: "arithmatex" | |
} | |
}; | |
document$.subscribe(() => { | |
MathJax.typesetPromise() | |
}) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
site_name: My Docs | |
theme: | |
name: material | |
markdown_extensions: | |
- pymdownx.extra | |
- pymdownx.arithmatex: | |
generic: true | |
extra_javascript: | |
- mathjaxconfig.js | |
- https://polyfill.io/v3/polyfill.min.js?features=es6 | |
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdocs==1.2.3 | |
mkdocs-material==8.1.4 | |
pymdown-extensions==9.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment