markdown-draft-js: PreserveNewLines doesn't seem to work
I have PreserveNewLines enabled in the config, but it doesn’t seem to be working.
markdown
foo
bar
rich text actual
foo
bar
rich text expected
foo
bar
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 3
- Comments: 22 (10 by maintainers)
DraftJS -> markdown is saved correctly. But when loading from markdown to draft, newlines are collapsed
Also, I wonder, why DraftJS:
is converted to markdown like:
Would it be better with preserve lines enabled option to convert to: