Rosey / markdown-draft-js

A tool to convert content created in DraftJS to markdown and vice versa.
https://rosey.github.io/markdown-draft-js/
MIT License
318 stars 70 forks source link

Move trailing whitespace to _after_ closing tags #4

Closed Rosey closed 7 years ago

Rosey commented 7 years ago

This is an "issue" with markdown - **a ** is not properly rendered, whereas **a** is.

So, for example, in cases when the final few chars in a bold block are spaces, remove them and then re-add after we close off the bold block.

We do this with all the inline styles 🙃