ProseMirror / prosemirror-markdown

ProseMirror Markdown integration
https://prosemirror.net
MIT License
344 stars 81 forks source link

Only add newline after hard line break if needed #81

Closed susnux closed 2 years ago

susnux commented 2 years ago

If preserveWhitespace: 'full' is set, hard line breaks are parsed as <br \>\n so the newline character after the tag is not removed. In this case there must be no additional newline character added when serializing the <br \> tag to markdown as this would create a new block and break marks.