-
-
Notifications
You must be signed in to change notification settings - Fork 443
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
fix: Error caused by converting hardBreak
nodes
#229
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Nice find!! I think programmability wise, it would definitely be easier if we could just represent it with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added some questions. Also, can you add unit tests similar like we have for the links?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved the comments to inside the branches, imo more readable.
Besides that I think it's good to go
When you press Shift+Tab in a block, it creates a new line in the same block which TIpTap/ProseMirror store as a
hardBreak
node. It turns out we completely forgot about these when doing inline content conversions, so this PR remedies that.This also fixes the
Empty text nodes are not allowed
error that some people have been getting, mentioned in issues #184 and #216.Closes #184
Closes #216