joeyuping / quick_latex_obsidian

MIT License
327 stars 21 forks source link

Fraction shorthand with curly brackets #55

Closed vreithinger closed 2 years ago

vreithinger commented 2 years ago

If one writes a b/c the plugin converts to a \frac{b}{c}. That makes sense. However, if one writes {a b}/c the plugin does not convert to \frac{a b}{c} but to {a \frac{b}}{c} which is not even proper latex syntax. Is there any way to have the / shorthand treat {a b} as one unit?

vreithinger commented 2 years ago

Found out that this can be done with ()