text icon indicating copy to clipboard operation
text copied to clipboard

Links removed on text formatted as inline code

Open Imberflur opened this issue 2 years ago • 2 comments

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.

  • [ ] Markdown syntax is not properly rendered in text
  • [x] Markdown syntax is removed after closing text
  • [x] Markdown syntax is changed after closing text
  • [ ] Something else: Please describe more in detail

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

  • Nextcloud version: 27.1.2

Imberflur avatar Oct 25 '23 17:10 Imberflur

Confirmed, I can reproduce.

mejo- avatar Jun 12 '24 09:06 mejo-

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

mejo- avatar Jun 12 '24 13:06 mejo-