[Question] Bug report: disappearing equations

Bug report[1]: in the default editor typing a space[2] after an inline LaTeX equation at the end of the line deletes all text on the line from the first inline LaTeX equation on the line onwards[3].

For A instance: B

If I hit space after the end of the above paragraph, it becomes:

For A

You can work around this in several ways, but it’s annoying at best:

  1. Copy/​paste a space after the equation.

  2. Type a non-space, then a space, then delete the non-space. (E.g. ‘a’ ‘space’ ‘left-arrow’ ‘backspace’ ‘right-arrow’).

  3. Don’t turn the equation into LaTeX until after you’ve put a space after it.

I have hit this several times, and have actually lost (a trivial amount of) work due to the issue (undo works to recover, but as this site doesn’t have a full tree-undo-redo system it only works if you catch it before you use the undo system for something else.)

Is this a known issue? Is there a better workaround for this?

  1. ^

    It feels wrong to submit a question for a bug report, but that’s on the suggested list...

  2. ^

    It only appears to happen with spaces?

  3. ^

    I think I saw it delete all LaTeX and only LaTeX on the line once? I have been unable to reproduce this variant, however.