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*.


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


Makes sense. It does seem inconsistent.


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