Skip to content

tryParseMarkdownToBlocks stripping empty lines #1935

@mieradi

Description

@mieradi

Describe the bug
When running tryParseMarkdownToBlocks, all existing empty lines are stripped from the document. This is a pretty large issue

To Reproduce

  • Add text and empty lines to editor
  • Log output of blocksToMarkdownLossy
  • Copy and paste in back into editor using tryParseMarkdownToBlocks
  • See whitespace is stripped

Misc

  • Node version: v22.16.0
  • Package manager: npm
  • Browser: Chrome
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions