mProjectsCode / obsidian-js-engine-plugin

https://www.moritzjung.dev/obsidian-js-engine-plugin-docs/
GNU General Public License v3.0
73 stars 5 forks source link

Question : how to output mathjax? #7

Closed sergeBoisse closed 8 months ago

sergeBoisse commented 9 months ago

Hello, thank you for this amazing obisidan plugin. I wonder how you could render Latex/mathjax ? I tried

let str = '$\pi=3$';
return engine.markdown.create(str);

But the result was just "pi = 3" instead of "π = 3'

EDIT : ok, iI found it ! you need to escape the backslash with another one : $\\pi=3$

Perhaps you could add one example in the doc ?

mProjectsCode commented 8 months ago

An example of this will be part of the new docs.