Skip to content

[Bug] v 0.20.0-rc.1 - Images with relative path don't display, even when the preferences is set #5212

Closed as not planned

Description

@typoman

Description

Hi, thank you for taking your time for reading this! MarkText is not displaying images with relative path inside the assets folder.

Steps to Reproduce

  • Create a markdown file with this contents:
![](assets/image.jpg)  
  • Create a folder next to the md file assets, put an image there with name image.jpg
  • Open the md file with MarkText, the image doesn't show up

I have already tested many combination of preferences in the Image section to make the relative path to file or folder work. None has worked.

Expected Behavior

I have a md Quick Preview in macOS finder that shows the image, I guess the assets folder is the default setting for many markdown viewers.

Actual Behavior

Image doesn't show up in MarkText

Screenshots / Logs

No response

Operating System

macOS

MarkText Version

0.20.0-rc.1

OS Version

macOS 15.7.7

Reproducibility

  • I can reliably reproduce this issue

Activity

  1. changed the title [-][Bug] v 0.20.0-rc.1 - Images with relative path not display, even when the preferences is set[/-] [+][Bug] v 0.20.0-rc.1 - Images with relative path don't display, even when the preferences is set[/+] on Aug 31, 2026
  2. Jocs commented on Sep 11, 2026

    @Jocs
    Member

    Thanks for the report! I tried to reproduce this on the published v0.20.0-rc.1 macOS build (arm64) with exactly your setup: note.md containing ![](assets/image.jpg) next to assets/image.jpg (a real JPEG). The image rendered in every case:

    • opening the file from Finder with MarkText not running
    • opening it into an already-running MarkText window
    • launching MarkText with the file path as an argument
    • folder names containing spaces, CJK characters or %

    The one case where the image did not show up was a folder name containing # or ? (for example C# notes/note.md). The folder path went into the image URL unescaped, so everything after # or ? was dropped. That is fixed in #5301.

    Since the steps above don't reproduce otherwise, I'm closing this. If it still happens for you, please reopen with:

    1. The full path of the markdown file. Does any folder name contain # or ??
    2. Whether the file is in Desktop, Documents, Downloads or iCloud Drive, and whether MarkText is allowed under System Settings → Privacy & Security → Files and Folders.
    3. What the image placeholder shows ("Load image failed" or "Click to add an image"), and the image's real file extension.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions