Converting a paragraph into a heading (or viceversa) will break the block if it contains a link #28111
Labels
[Feature] Block Transforms
Block transforms from one block to another
[Status] In Progress
Tracking issues with work in progress
[Type] Regression
Related to a regression in the latest release
Trying to convert a paragraph block into a heading (or the other way around) will cause the block to break if it includes a link
To reproduce
Expected behavior
The paragraph should convert into a heading without issues but instead, it broke.
Screenshots

Editor version:
The exact same problem arises if you do the opposite: create a heading, add a link and try to convert it into a paragraph.
The console returns this error:
If I switch to the "Code View" I see this markup:
The text was updated successfully, but these errors were encountered: