Rosey / markdown-draft-js

A tool to convert content created in DraftJS to markdown and vice versa.
https://rosey.github.io/markdown-draft-js/
MIT License
318 stars 69 forks source link

fix: allowing sup/sub to be equal as "code" #162

Closed thiagoskbnsk closed 3 years ago

thiagoskbnsk commented 3 years ago

Seems when we use sup or sub blockStyles are returning blockStyle with length: 0 and as code, they don't have _open/_close. Adding this code below, it works fine

Rosey commented 3 years ago

Thanks! Someone else opened a very similar PR addressing the same thing which I just merged, so I will close this one 🙂

https://github.com/Rosey/markdown-draft-js/pull/163