Auto pair Markdown syntax should not be triggered when ` is pressed before inline formats

Steps to reproduce

  • Copy and paste *a* (or ==a== or any other inline formats).
  • Press ` before *a*

Expected and actual behavior

Only a single ` is expected to be inserted, but actually two ` are inserted, resulting in ``*a*.

Discussion

When pressing * before a, only a single * is inserted. Therefore, only a single ` should be inserted when ` pressed before *a*.

2 Likes

Makes sense. It does seem inconsistent.

screenshot_2022-08-25_12-59-53

Similarly, it should not be triggered immediately after. I often encounter this when trying to type an apostrophe after a linked name ([[CawlinTeffid]]'s).

Actually, formatting like * is doubled in that situation, too, but I think it shouldn’t be.

1 Like