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

[BUG] Use of asterisk in regex mode silently breaks other snippets (in the same mode)

Open universemaster opened this issue 10 months ago • 0 comments

Description

Add this to the middle of your list of custom snippets:

{ trigger: "that\*\* that", replacement: "that** ", options: "mAr" }

(I realise now that the "m" option was a mistake).

The purpose of this snippet is to ensure if I have "that" is inside a bold section that I don't write "that" after the bold section too.

To Reproduce

Notice that some other "m" math mode snippets break (I think snippets AFTER this one). But text mode snippets continue to work.

Expected Behavior

Either an error, or have it not break.

Additional Info

I mostly provide this as an alert to other users, so they don't have to go through the 4 hours of debugging and downgrading that I have just gone through!

universemaster avatar Aug 06 '23 12:08 universemaster