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
hamflx
changed the title
InputRules does not work for ranges contianing multiple text nodes.
InputRules does not work for ranges containing multiple text nodes.
Aug 10, 2022
Also faced this issue in our installment of tiptap, dug deep and found the exact same broken LOCs as you did. Your fix seems very reasonable and should be pulled in the near future IMHO.
What’s the bug you are facing?
When markdown tags cover multiple text nodes, they will not work. See GIF:
The initial problem was #2937, fixed by #2941.
But if a paragraph contains multiple text nodes within it, and InputRule needs to span those nodes, it will not work.
I'm using the latest code from the main branch.
Which browser was this experienced in? Are any special extensions installed?
Chrome/103.0.0.0. No special extensions.
How can we reproduce the bug on our side?
correct result: A B C
incorrect result: *A B C*
Can you provide a CodeSandbox?
No CodeSandbox, but there is a "Deploy Preview" provided by #2941
https://deploy-preview-2941--tiptap-embed.netlify.app/
What did you expect to happen?
InputRule should work between multiple text nodes.
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: