-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
markdown: use " \n" as the representation for LineBreakNode
In Markdown, single newlines are irrelevant for presentation. They are only for the editing convenience of the author. In HTML and the Lexical composer, a LineBreakNode / `<br>` tag represent a line break in the presentation of the content. Currently, the equivalence with single newlines causes the markdown representation to not be accurate to the composer view or HTML generated or imported. In Markdown, you can create a line break in the presentation and achieve the desired effect by ending a line with two spaces (followed by a newline). Update the import/export to do this.
- Loading branch information
Showing
4 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters