sytsereitsma / mdbook-plantuml

mdBook preprocessor to render PlantUML diagrams to png images in the book output directory
MIT License
76 stars 14 forks source link

Enabling plantuml preprocessor seem to conflict with mathjax? #15

Closed fulara closed 4 years ago

fulara commented 4 years ago

After i enable plantuml by:

[preprocessor.plantuml]
plantuml-cmd="java -jar /home/fulara/for_others/plantuml.jar"

some snippets from mdbook mathjax no longer works specifically: https://github.com/rust-lang/mdBook/blob/master/book-example/src/format/mathjax.md example:

\\( \int x dx = \frac{x^2}{2} + C \\)

No longer renders when plantuml is enabled. but when using begin/end cases it still works.

This probably seems like my configuration issue but I am not 100% sure.

sytsereitsma commented 4 years ago

Strange. The preprocessor should only touch/replace the plantuml markdown blocks, it does not inject any js stuff and does not do client side rendering. Could be a bug in the library I use to parse the markdown. Will have a look

sytsereitsma commented 4 years ago

Fixed with v0.6.0-beta