Rosey/markdown-draft-js

Text disappears when preceded by a dash and spaces

Opened this issue · 0 comments

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