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

extra closing bracket when conceal is enabled

Open OsKaR31415 opened this issue 1 year ago • 3 comments

When i have that code $\sum_{k=1}[cursor]$ and i try to add the ^ symbol for the upper limit, an extra bracket is added, and i get : $\sum_{k=1}}^[cursor]$.

I have tried to toggle everything that has anything to do with brackets or the plugin or latex, and i found that the bug is present only when the conceal feature is enabled.

Important Note : I use an azerty french keyboard, and the bug happends only because the french ^ key is a dead key (meaning that pressing ^ waits for another key to make for example â widh ^a). If i switch to a qwerty layout, the bug dissapears. I already noticed some similar problems with the vim bindings that don't detect properly the { (that is done using alt-() on azery, but perfectly on qwerty.

OsKaR31415 avatar Sep 08 '22 20:09 OsKaR31415

I have a QWERTY keyboard, so I can't reproduce this or debug it very easily.

Would you consider using the rd snippet to insert superscripts instead? If not, could you post a video showing the issue, and you walking your cursor through the equation?

artisticat1 avatar Sep 09 '22 21:09 artisticat1

could you post a video showing the issue, and you walking your cursor through the equation?

Here it is : demo of the bug

You can see the doubled }

OsKaR31415 avatar Sep 13 '22 10:09 OsKaR31415

Thanks. I recommend using a snippet for now until I can investigate the issue.

artisticat1 avatar Sep 15 '22 18:09 artisticat1