artisticat1 / obsidian-tikzjax

Render LaTeX and TikZ diagrams in your notes
MIT License
357 stars 18 forks source link

Support usage in math blocks (or why not) #16

Closed fenjalien closed 1 year ago

fenjalien commented 1 year ago

Hi, love the plugin and I've been having fun making drawings n stuff. However, it could be so much better if tikz commands could be used inside math blocks instead of code blocks. This would unlock inline graphics which would be immensly useful! I understand that this may not be possible due to the limitations of tikzjax, if so could you give an explanation of why not?

Thanks for the amazing work so far :)

artisticat1 commented 1 year ago

Hello!

Math blocks are rendered using MathJax, which is its own math rendering engine. It would not be possible to render the contents of a single math block using both MathJax and TikZJax.