Only add newline after hard line break if needed #81

Closed
susnux wants to merge 1 commit from fix/hardbreak-newline into master
susnux commented 2022-07-11 13:00:23 +02:00 (Migrated from github.com)
  • Resolves: #80

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.

* Resolves: #80 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.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
prosemirror/prosemirror-markdown!81
No description provided.