Describe the bug
When I try to convert an HTML string containing <code>
blocks into BlockNote blocks using tryParseHTMLToBlocks
, and then replace the current blocks using replaceBlocks
, all the line breaks inside the code blocks are lost and replaced with spaces. This causes multi-line code to appear as a single line, breaking formatting and readability.
To Reproduce
github-vamzb28v (1).zip
Misc