Closed
Description
Within DraftJS, if I have a string such as ' foo ' styled entirely bold, exporting this to markdown will output ** foo **
which due to the surrounding whitespaces, results in ** foo **
being rendered rather than foo.
Similar issues occur when the whitespace is only on one end of the string.
I'm thinking that such styled strings should be trimmed and any whitespace be pushed to outside of the formatting syntax such that it can be rendered correctly. I can push a PR up shortly.