oleeskild / obsidian-digital-garden

MIT License
1.36k stars 125 forks source link

[Feature Request] MathJax preamble support #347

Open RyotaUshio opened 1 year ago

RyotaUshio commented 1 year ago

Hi, thank you very much for this great project!

My notes contain a lot of mathematical equations, which rely on my user-defined MathJax commands. These commands are defined in preamble.sty in my vault root, which looks like this:

⋮
\newcommand{\set}[1]{\left\{{#1}\right\}}
⋮

In Obsidian, we can load this preamble.sty using a plugin Extended MathJax and use these commands in our notes. However, these commands are not displayed correctly when we publish our notes with Digital Garden. So it would be super nice if Digital Garden can support loading preambles.

By the way, the plugin that I've mentioned seems to be very simple (less than 100 lines of code). I'm not sure how to realize the same functionality in Digital Garden, though.

mtkiener commented 6 months ago

Would also love this functionality! @RyotaUshio, were you able to find any work arounds for this in the meantime? Thanks!

RyotaUshio commented 6 months ago

@mtkiener I still love this plugin but I use Webpage HTML Export when I need a preamble because it supports Extended MathJax.