Skip to content

Instantly share code, notes, and snippets.

@akhmerov
Created January 3, 2022 14:08
Show Gist options
  • Save akhmerov/8cbb4aa3af32d318f3fda76ffb5bf603 to your computer and use it in GitHub Desktop.
Save akhmerov/8cbb4aa3af32d318f3fda76ffb5bf603 to your computer and use it in GitHub Desktop.
Scrollbars in mkdocs-material display math

Welcome to MkDocs

[ x ]

window.MathJax = {
tex: {
inlineMath: [["\\(", "\\)"]],
displayMath: [["\\[", "\\]"]],
processEscapes: true,
processEnvironments: true
},
options: {
ignoreHtmlClass: ".*|",
processHtmlClass: "arithmatex"
}
};
document$.subscribe(() => {
MathJax.typesetPromise()
})
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
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