ProseMirror / prosemirror-markdown

ProseMirror Markdown integration
https://prosemirror.net
MIT License
344 stars 81 forks source link

Trailing/leading whitespace in emphasis/strong spans isn't serialized correctly #1

Closed marijnh closed 7 years ago

marijnh commented 8 years ago

I.e. you'll end up with Markdown like foo * bar* which the Markdown parser won't actually recognize as emphasis because there's whitespace after the asterisk.

Originally reported here

TimothyGu commented 8 years ago

In this situation, rather than outputting invalid Markdown, it might be better to move the whitespace in the emph/strong span out of the span (i.e. foo  bar)

owjsub commented 7 years ago

This issue commonly affects iOS/Android users. They are more likely to add a space before toggling emphasis.