Lexical version: 0.35.0
Steps To Reproduce
- in Playground, create a link and then add some text
- Add "bold" to both elements
- convert to markdown
- convert back
The same thing happens with "italic" style *.
The link doesn't have to be the start of the line, just start of the format
note
The issue looks very similar to one I've reported before; however, even though the steps are similar, the result is different (the right side of ** is just completely missing), so I think it deserves a separate report.
The current behavior
[**link](url) message**
The generated markdown is invalid; as shown in step 4, Lexical also fails to parse it correctly.
The expected behavior
The generated markdown to be parsable. I guess something like that:
**[link](url) message**
sounds the most reasonable
Impact of fix
The provided steps gives you 100% reproducibility. So every user who uses markdown and basic rich utils is impacted.