Skip to content

Text disappears when preceded by a dash and spaces #183

Description

@fran-code

Whenever a user writes/copies a text that starts with a dash “-“ and has at least 5 empty spaces, markdownToDraft function is not able to interpret and shows that text part as blank.

It is possible to reproduce it in the demo, http://www.roserobertson.me/markdown-draft-js/

To reproduce it, enter a dash followed by 5 spaces in the right panel (Markdown Editor) and some text. In the left panel (Draft.js Editor) we will see that the text disappears when transformed into an unordered list.

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions