-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Bug: markdown link transformer wraps the entire line into a link #8129
Copy link
Copy link
Closed
Labels
Description
Lexical version: 0.40.0
Steps To Reproduce
- The string must contain a text node in the form of a markdown-like link. Insert this
[text](https://x.com) — this is markdown link. Try to write ')'. - Manually write the markdown link on the same line:
[text](https://x.com)
Link to code example:
The current behavior
Аfter the ')' character is triggered, the entire line will wrap in LinkNode. In the text part of the link, square brackets will be cut off at the edges.
current.transform.link.mov
The expected behavior
Only the current link being entered is transformed
Impact of fix
In theory, this may prevent you from writing content for an article on the use of markdown
Reactions are currently unavailable