Skip to content

Trailing space in style block results in misrendered markdown #208

Closed
@ashbrowning

Description

@ashbrowning

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions