#6592·Zettlr

bug: a URL in image alt-text is treated as the image source

Author: YorstarCreated Sep 26, 2026Updated Sep 28, 2026
Labelsbug

Description

When an image's alt text contains a URL, Zettlr does not render the image correctly.

For example:

markdown
![https://example.com](./test.png)

I would expect test.png to be rendered as an image, just as with ordinary alt text.

However, instead of displaying test.png, Zettlr displays the alt text https://example.com in the editor. The displayed text is also treated as a clickable external link.

Therefore, the main issue is that the image itself is not rendered when the alt text is a URL.

Reproducing

  1. Create a Markdown file in Zettlr.
  2. Place an image file named test.png in the same directory.
  3. Add the following Markdown:
markdown
![https://example.com](./test.png)
  1. Make sure the image is rendered in the editor.
  2. Click the displayed https://example.com text.
  3. The default web browser opens https://example.com.

Zettlr version

4.8.0

Installation Method

From the Website or GitHub

Installation Method (Other)

No response

Your Platform

  • Windows
  • macOS
  • Linux

Architecture

  • Intel 64bit
  • ARM 64bit (includes Apple Silicon)

Operating System Version

Windows 11

Additional Information

No response