Using Mkdocs, arithmatex, and Katex #1953
-
Hi! I am trying to use the Katex backend for latex rendering within Mkdocs. I use this to generate personal notes locally. I use site_name: Katex
nav:
- Home: index.md
theme:
name: mkdocs # an other choice: readthedocs
extra_css:
- 'https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.css'
extra_javascript:
- 'https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.js'
- 'https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0-alpha1/contrib/auto-render.min.js'
markdown_extensions:
- pymdownx.arithmatex:
generic: true and index.md
the equation doesn't render... What am I missing? Thanks! For background, I want to use Katex instead of Mathjax because I read that it supports the bm latex package. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You'll need the little loader to target the If you have issues with the loader, let me know so I can update the script if necessary. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much. For reference, I replaced the the second entry in |
Beta Was this translation helpful? Give feedback.
You'll need the little loader to target the
arithmatex
blocks. You should find one in the docs: https://facelessuser.github.io/pymdown-extensions/extensions/arithmatex/#loading-katex.If you have issues with the loader, let me know so I can update the script if necessary.