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)

Most upvoted comments

DraftJS -> markdown is saved correctly. But when loading from markdown to draft, newlines are collapsed

Also, I wonder, why DraftJS:

first line second line

is converted to markdown like:

first line

second line

Would it be better with preserve lines enabled option to convert to:

first line
second line