lzanini / mdbook-katex

A preprocessor for mdBook, rendering LaTex equations to HTML at build time.
MIT License
205 stars 34 forks source link

Possibility of serverside TikZJax rendering? #83

Closed expikr closed 1 year ago

expikr commented 1 year ago

Just as mdbook-katex leverages existing KaTeX javascript, the same structuring could apply to the existing obsidian-tikzjax javascript implementation which is run clientside to generate html outputs, all we would need to do is to feed it the markdown input during the preparse time and it becomes serverside rendering.

If the use of ```tikz blocks is a potential issue, a custom tag could always be used instead as the default i.e. <tikz></tikz>, though I guess since mdbook-mermaid is a thing this wouldn't be a problem.

SichangHe commented 1 year ago

Feel free to fork either this repository or mdbook-mermaid for a starting point and implement a preprocessor yourself.

Closing because this is out of bound of this project