Text editor formatting breaks when typing space after backtick in inline code
The text editor has a formatting bug that occurs when typing a space character in a specific position within inline code blocks.
Steps to Reproduce:
-
In the text editor, type the following text:
Hello `foo` hi `` hello hello
-
Position your cursor immediately after the second backtick (`)
-
Press the space key
Expected Behavior:
The inline code formatting should remain intact and the space should be inserted normally without breaking the markdown rendering.
Actual Behavior:
The formatting breaks when the space is inserted at this position.
Additional Context:
This appears to be related to how the editor handles inline code syntax (backticks) when spaces are inserted at boundary positions between code blocks.