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:
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
- Create a Markdown file in Zettlr.
- Place an image file named
test.pngin the same directory. - Add the following Markdown:
- Make sure the image is rendered in the editor.
- Click the displayed
https://example.comtext. - 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
Source: Zettlr/Zettlr