[Bug]: Link Extension Issue After Line Break in Google Chat #5335
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Affected Packages
core, react
Version(s)
v2.0.4
Bug Description
Gravacao.de.Tela.2024-07-12.as.15.32.14.mov
Good afternoon, I am experiencing an issue, and it is also occurring on the tiptap platform(as shown in the video). Using Google Chat, I sent a test message to myself with two links, one from Google and one from Yahoo. The problem is as follows: when I have a link, followed by a line break, the link extends into the next word after the line break, making the link invalid.
First test:
One: https://www.google.com/
Two: https://www.yahoo.com/
As shown in the video, in the above example, the first link generates an error because it concatenates the line break and the first word (two) into the link. However, in the example below, everything works correctly.
Second test:
One: https://www.google.com/ x
Two: https://www.yahoo.com/ y
Browser Used
Chrome
Code Example URL
https://templates.tiptap.dev/9PPbJz7h9d
Expected Behavior
After fixing this issue, links should not extend into the next word after a line break. Each link should remain valid and separate from any text following a line break. For instance, in the first test, the link to Google should remain as https://www.google.com, without including the word "Two" or any subsequent text. This behavior should be consistent regardless of the position of line breaks and surrounding text.
Additional Context (Optional)
No response
Dependency Updates
The text was updated successfully, but these errors were encountered: