SeptemberHX / joplin-plugin-enhancement

joplin plugin to enhance my daily usage
GNU General Public License v3.0
166 stars 13 forks source link

mhchem Equations Not Loading in Math Preview #41

Open ip-ragmatic opened 1 year ago

ip-ragmatic commented 1 year ago

When I type the mhchem macro for chemical equations into inline/block equations, Enhancement's math renderer doesn't preview the format properly in the Markdown editor.

In this image, the left column (markdown editor) should preview the chemical equations like how it is on the right: image

The code in Joplin for the above image:

$$
\text{Math Block:} \\
\ce{^238_83U}
$$

Inline Math Preview: $\ce{H2O}$

Fixing this would be really useful because typing chemical equations using mhchem is so much simpler than typing them in using standard KaTeX. But regardless, thank you so much for creating this plugin. It's amazing and it makes using Joplin so much better.

ip-ragmatic commented 1 year ago

I'm not really sure, but #32 might be relevant to this bug.