Skip to content

Image Links Format #199

Closed
Closed

Description

@ryanthara

My note system comes from and/or is dual used with Zettlr and the format of the linked images is different in both programs.

Same folder structure:

1_Projects
...
99_Bilder

The folder 99_Bilder is the settings defined default folder in Zettlr.

In Zettler, which is the program I did most of my notes with images inside, the link to an image looks like this:

![Maße im Möbelbau](../../99_Bilder/Maße-im-Möbelbau.png "Maße-im-Möbelbau.png")

This image is not shown because of the relative file format.

I have to change the link to:

![Maße im Möbelbau](inbox/99_Bilder/Maße-im-Möbelbau.png "Maße-im-Möbelbau.png")

The image is not shown in ZenNotes. When I inserted the image manually the link is this:

![[inbox/99_Bilder/Maße-im-Möbelbau.png]]

This results in a different view between Edit and Preview mode. Only the in ZenNotes inserted image is shown in the Editor mode, but both images are shown in the Preview mode.

Maybe this is not an issue.

Activity

  1. added
    bug
    editor
    on Aug 25, 2026
  2. added theissue type on Aug 25, 2026
  3. adibhanna commented on Aug 25, 2026

    @adibhanna
    Contributor

    Fixed on the v2.38.0 release branch in db85ee0. It is an issue, and a good catch.

    Zettlr writes a markdown title after the path on every image: ![Maße im Möbelbau](inbox/99_Bilder/Maße-im-Möbelbau.png "Maße-im-Möbelbau.png"). The preview goes through a full markdown parser, which knows what a title is, so it drew the picture. Edit mode used its own pattern for a standalone image line and read everything between the parentheses as the path, title included, so png "Maße-im-Möbelbau.png" did not look like an image extension and you got an attachment chip instead. Standalone image and PDF lines now drop a quoted or parenthesised title, and clicking such a link opens the path without the title.

    Two notes on the rest of your report: ![[inbox/99_Bilder/…]] and ![alt](inbox/99_Bilder/…) both work now, and a path relative to the note (../../99_Bilder/…) resolves as long as it stays inside the vault, which it does from a note under inbox/1_Projects/….

    Validated with unit tests (double-quoted, single-quoted and parenthesised titles, angle-bracketed paths with spaces, relative parents) and an in-app run on the built app where the Zettlr line renders the picture in edit mode.

    How to test locally: put ![chart](assets/chart.png "chart.png") on its own line in a note. Before: a chip reading "chart". After: the picture. Ships in 2.38.0.

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

    bugeditor

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions