-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty List Items throw errors in Slate fromMarkdown #125
Comments
Easy way to reproduce the issue with
|
So a little more investigation here. I think there is a bit of a discrepancy between
Possible solutionsI think this can easily be fixed, but not sure what's the preference.
@dselman Any opinion on this? |
Note. I've experimented with the second option and it does fix the issue reported by @irmerk. (and of course breaks all the test snapshots in
|
I think first option is less intrusive. Unless objections, I'll go ahead with that. |
I agree -- option 1 sounds better. |
Fixed in #127 |
Describe the bug
Error occurs when translating markdown to Slate
Additional context
This is happening when taking markdown from a database, which includes an unordered list (
ulist
) with a final bullet point which is empty.The error
From this source code
When using this markdown
The text was updated successfully, but these errors were encountered: