marktext / marktext/marktext

Image local source file not being deleted

Open
#3,802 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

:beetle: pri/low 🐛 bug 🔭 area/editor
Dominant language
TypeScript
Stars
61.6k
Forks
4.6k
Avg merge
23h 49m
Merged PRs (30d)
89

Description

Description

When deleting an image from a markdown document using backspace it doesn't actually delete the local image from the images folder.

  • Can you reproduce the issue?
Steps to reproduce
  1. Import image from a local source.
  2. Delete image from a markdown file using backspace.

Expected behavior:

Local image should be deleted.

Actual behavior:

Local image is not being deleted.

Versions
  • MarkText version: 0.17.1
  • Operating system: MacOS 13.6.6

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 by importing a local image into a Markdown document and deleting it with Backspace on macOS. Trace the local-image import and deletion behavior, then verify that deleting the image also removes its source file from the images folder without affecting the document.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop
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.