secure-77 / Perlite

A web-based markdown viewer optimized for Obsidian

Home Page:https://perlite.secure77.de/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image links to external URLS dont work

NotGovernor opened this issue · comments

Describe the bug
Image links to external URLS dont work.

To Reproduce
Craft a link like the following that wraps a local image with an external URL.

[![[files/Image.jpg]]](https://website.com)

Expected behavior
The image is linked.

Actual
The image is rendered but the link url is placed outside with the square brackets visible.

I'm not sure if this is really a bug or not but embedding external images is working fine if you specify the full path in the link section and don't split it.

Example, this is working

![Minion](https://octodex.github.com/images/minion.png)

Also I can't see any advantage of splitting the image link so I won't fix this.

This bug might have been misunderstood. The goal is to show an image (local or remote doesnt matter) that when clicked opens an external URL.

From my example ![[files/Image.jpg]] is the image. In this case a local one, but that's not the problem being raised. It's when you then wrap that in another link as in the OP example that it is rendered improperly.

Sorry for my report not being clear enough. Hope this helps. :)

Ah ok, got it, I will reopen this issue as a feature request