marktext / marktext/marktext

Relative path image support

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

Nobody has claimed this yet.

:unicorn: feature request 🔭 area/editor
Dominant language
TypeScript
Stars
61.6k
Forks
4.6k
Avg merge
23h 49m
Merged PRs (30d)
89

Description

Describe your feature request

When I write blog in hugo, the image need handle by myself.I want to use marktext relative assets folder ability to make image automatic save to static/images folder, and in md file reference should be

![](/images/imagename)

I hope marktext can give a configuration to config the image save path and rewrite path.
For example,

globalImageFolder: ~/blog/static/images
rewriteFolder: /images

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 in the issue. Start by locating MarkText's image insertion and configuration handling, then compare the requested globalImageFolder and rewriteFolder behavior with Hugo's static/images layout. Done means images can be saved to the configured folder and Markdown references use the configured rewritten path.

Written by the indexing model from the issue text.

Assessment

Tech stack
hugo, typescript
Domain
content, desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.