aguingand / tiptap-markdown

The Markdown extension for Tiptap editor.
MIT License
272 stars 17 forks source link

Whitespace and empty list items removed when calling setContent #57

Open idevelop opened 5 months ago

idevelop commented 5 months ago
  1. Have a tiptap document with some whitespace at the end of lines, and also some bullet points that are empty, for example:
    Screenshot 2024-02-11 at 16 14 28

  2. Call getMarkdown(), notice it's correctly reflected in the output:
    Screenshot 2024-02-11 at 16 14 50

  3. Call setContent() with the markdown output from step (2), notice that some list items and the trailing whitespace are stripped out when converting back to HTML:
    Screenshot 2024-02-11 at 16 16 12

Is this something that's at all configurable through the plugin's options?

ishan28mkip commented 1 month ago

Hey @idevelop did you find a solution to this issue?