obsidian-latex-suite icon indicating copy to clipboard operation
obsidian-latex-suite copied to clipboard

[Bug] math/text enviroment is not determined correctly with unusual tokens

Open vlad2305m opened this issue 1 year ago • 0 comments

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.

vlad2305m avatar Feb 20 '23 09:02 vlad2305m