Closed crivetimihai closed 5 years ago
weasyprint will never run any JS code. If you want anything to be rendered, it has to be in the initial HTML DOM. Basically, for this to work, you'd have to implement a python plugin which renders the TeX Math to an image during build time.
I am using the
pymdownx.arithmatex
extension with the material theme, as described here: https://squidfunk.github.io/mkdocs-material/extensions/pymdown/#arithmatex-mathjaxThis works great when rendering HTML, but doesn't translate to PDF when using
pdf-export
.mkdocs.yml
is configured with the extra_javascript for MathJax. Maybe I'm missing a CSS?Thanks!