Combining Bold, Italic and strikethrough formats can generate invalid markdown
Lexical version: 0.2.9
Steps To Reproduce
- Enable Bold, type (
Bold )
- Enable Italic, type (
Italic )
- Enable strike through, type (
bold italic strikethrough)
- View generated markdown
Note that the generated markdown is:
**bold *italic ~~strikethrough***~~
Which escapes strikethrough incorrectly, it should be
**bold *italic ~~strikethrough~~***
The current behavior
Invalid markdown is generated
The expected behavior
Proper markdown should be generated
Current bad state


Fixed state with open PR:

