Closed joepio closed 7 years ago
Darn sorry for such a long delay in my reply, I somehow missed the notification of this issue being opened and so I didn't even know there was anything to respond to until I was randomly viewing the repo this morning! Two months later 😳
Good bug report, I'll make sure it gets fixed 🙂 🐛
Opened a PR :)
First of all, thank you so much for sharing this plugin!
An error occurs when a markdown line is converted to DraftJS with one or multiple
#
symbols that is not followed by regular characters. A header block is created, but since it does not have atext
attribute, it's length cannot be calculated.The bug can be replicated like this
If we take the constructed object, and add a
text
attribute string to the header block, there are no errors.Perhaps the header block should contain an empty string as its
text
attribute.