You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When converting markdown with an empty list item to slate ast, this will crash slate with "Cannot get the end point in the node at path [9,0] because it has no end text node."
To reproduce
Add an empty list item to the article.md fixture (see here)
npm run storybook and see the crash
Possible solution
I'm not yet very familiar with slate, but it seems that guarding against empty children in convertNodes could work, see here.
Thanks!
The text was updated successfully, but these errors were encountered:
When converting markdown with an empty list item to slate ast, this will crash slate with "Cannot get the end point in the node at path [9,0] because it has no end text node."
To reproduce
article.md
fixture (see here)Possible solution
I'm not yet very familiar with slate, but it seems that guarding against empty
children
inconvertNodes
could work, see here.Thanks!
The text was updated successfully, but these errors were encountered: