nextcloud / nextcloud/text

Markdown files with attachments cannot be edited locally

Open
#5,801 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature: images
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

At the moment media files embedded in a markdown file are stored inside a hidden folder named .attachments.123456 next to the markdown file. There are many nice markdown editors for Mac which could be used to edit local files, but unfortunately they all are not able to scan hidden files, so the attachments appear broken.

There could be a per-file setting, e.g. "non-hidden attachments folder", also warning that the folder should not be touched. When I removed the hiding dot from the attachments folder and in the markdown source code on my local machine, i wasn't able to share the file anymore with guests, as images xouldn't be found in the shared file view. (I guess we automatically add the same permissions of the markdown-file to each attachment, but I couldn't find any documentation about the exact voodoo going on here.)

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

No files, tests, or entry points are named. Start by tracing how .attachments folders are created, discovered, and permissioned for shared views; determine whether a per-file non-hidden-folder setting is feasible. Done means local editors can find attachments without breaking guest sharing.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown
Domain
content
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.