obsidian-latex-suite
obsidian-latex-suite copied to clipboard
[Bug] math/text enviroment is not determined correctly with unusual tokens
Triggering a snippet like {trigger: "h", replacement: "\\colorbox{$0}{\\\(${VISUAL}\\\)}$1", options: "mA"}
often causes \(
, the alt math mode token be converted to \\left(
, which renders the expression invalid as it is disallowed in text mode.
$\colorbox{}{\\left( \frac{1}{2}\ \right)}$
Also, latex suite treats $\text{\( \)}$
as a text environment. Please add support for all environment tokens, or a setting to add them.