simov / markdown-viewer

Markdown Viewer / Browser Extension
MIT License
1.07k stars 135 forks source link

Spaces in path names break embedded pictures #242

Open Korodny opened 3 months ago

Korodny commented 3 months ago

The following embedded picture does not display properly, Markdown Viewer just displays the Markdown source:

![foo](Ausschneiden mit GIMP/Bildschirmfotovom2024-06-0514-17-26.png)

If I replace the spaces in the directory name with underscores and update the Markdown accordingly ("Ausschneiden_mit_GIMP"), it works fine.

Firefox 115.11, Markdown Viewer 5.3, Debian Testing.

simov commented 3 months ago

You have to use this syntax instead:

![foo](<Ausschneiden mit GIMP/Bildschirmfotovom2024-06-0514-17-26.png>)

though to be fair I did not know that either, I just looked it up on the internet https://superuser.com/a/1517072/250714