obsidian-latex-suite
obsidian-latex-suite copied to clipboard
[BUG] Automatically convert lone letters or Greek letters in text to math in inline code environment
Description
{trigger: /([^'])\b([B-HJ-Zb-z])\b([\n\s.,?!:'])/, replacement: "[[0]]$[[1]]$[[2]]", options: "tA"},
The "automatically convert lone letters or Greek letters in text to math" feature that you updated in version 1.9.2 of the "Misc" section is very useful. Thank you very much.
But currently, I have found that it also triggers in the inline code environment. For example, when I originally intended to write x = y + 1
, it would automatically expand to x = $y$ + 1
.
Additionally, I attempted to emulate this snippet implementation to convert numbers in text to math, such as {trigger: /(\d+)([\n\s.,?!:'])/, replacement: "$[[0]]$[[1]]", options: "tAw"},
.
In practical application, the ideal scenario is to convert 12
to $12$
, and the result is indeed converted to 2$
. I have tried disabling other plugins, but still cannot solve this problem.