tiptap-markdown
tiptap-markdown copied to clipboard
Whitespace and empty list items removed when calling setContent
-
Have a tiptap document with some whitespace at the end of lines, and also some bullet points that are empty, for example:
-
Call
getMarkdown()
, notice it's correctly reflected in the output: -
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:
Is this something that's at all configurable through the plugin's options?
Hey @idevelop did you find a solution to this issue?
Any luck here? Seems to be a non-configurable part of the markdown parsing.
+1
Same issue but for spaces at the end of the document. I'm using the onUpdate()
callback and each time a user adds a space at the end of the document, it is removed when I run editor.storage.markdown.getMarkdown()
.
Yeah, I'm noticing this issue as well.