nextcloud / text

📑 Collaborative document editing using Markdown
GNU Affero General Public License v3.0
550 stars 87 forks source link

Links removed on text formatted as inline code #4900

Open Imberflur opened 11 months ago

Imberflur commented 11 months ago

Short summary of the issue

Opening markdown with links on text containing inline code formatting with backticks will remove the link or move it to the first portion of text before the inline code formatting starts. I believe this is a specific case of https://github.com/nextcloud/text/issues/593 but I haven't been able to find any discussion/information on this particular case.

Example markdown file

[`SomeCode`](https://link.to/something)
[One `two` three](https://link.to/something)

Resulting markdown file after opening in text

`SomeCode`
[One](https://link.to/something) `two` three

Screenshot of the rendering in text

image

Details

mejo- commented 4 months ago

Confirmed, I can reproduce.

mejo- commented 4 months ago

I opened an upstream issue about it since it is also reproducible in TipTap upstream: https://github.com/ueberdosis/tiptap/issues/5225