kadikraman / draftjs-md-converter

Converts content from Draft.js blocks to Markdown and vice versa.
https://kadikraman.github.io/draftjs-md-converter/
MIT License
145 stars 37 forks source link

draftjsToMd return incorrect value #25

Open Lieblein opened 7 years ago

Lieblein commented 7 years ago

It seems that draftjsToMd handles intersection of inline instructions incorrectly. For example Markdown line:

**test _te**st_ 

is converted to

<strong>test <i>te</strong>st</i> 

According http://spec.commonmark.org/dingus/?text=**test%20_te**st_ it should be


<strong>test _te</strong>st_