-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Horizontal rule by input rule adds extra paragraph node above #3809
Comments
Yes, I use horizontal rules a lot, and this one is very annoying. Hope it gets some attentiont soon, it shouldn't be too hard to fix 😅 |
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days |
Still valid. |
@rfgamaral @thefinnomenon here's a patch for this that worked for me: #3859 (comment) |
Thanks, yeah I have been using that patch and it works perfectly! |
Thank you, @steven-tey. |
What’s the bug you are facing?
When adding a horizontal rule using an input rule (--- or ___ ), it adds an empty paragraph node before the divider node.
Which browser was this experienced in? Are any special extensions installed?
Doesn't apply.
How can we reproduce the bug on our side?
You can recreate it in the horizontal rule playground https://tiptap.dev/api/nodes/horizontal-rule
enter ---
Can you provide a CodeSandbox?
No response
What did you expect to happen?
I expect it to only add the divider
Anything to add? (optional)
No response
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: