Repository navigation
Feature Request: Option to preserve trailing and leading whitespace in marks' Markdown #8518
mweidner037
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
Currently, trailing and leading whitespace is moved out of a mark (bold, italic, etc.) when rendering Markdown, per #7180. This means that we can't always "round-trip" content to Markdown, i.e., losslessly convert JSON -> Markdown -> JSON.
It would be nice to add an extension-level option that disables this feature. That way, I could extend the bold (etc.) extension to:
<b> asdf</b>instead of** asdf**- like Notion-flavored Markdown.Use Case
I send Tiptap content to AI as Markdown and get edits back as Markdown. With a lossless round-trip, I can do so without accidentally changing the content.
Type
New feature
All reactions