nextcloud / nextcloud/text

Block images with links are broken | link is removed on save

Open
#3,444 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug feature: images format: markdown regression
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

Describe the bug
Inline images within links are broken, for example:

[![some image](source)](https://example.com)

will now result in only the image (link gets removed):

![some image](source)

To Reproduce
Steps to reproduce the behavior:

  1. Upload a markdown file with inline image within a link
  2. Add some other content (below / before...)
  3. Save file and download
  4. See removed link

Expected behavior
Inline images still have the link markup applied

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue through the markdown upload, edit, save, and download flow using an inline image inside a link. Start by tracing the markdown handling involved in that flow; done means the downloaded content preserves the link markup around the image after saving.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
full-stack
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.