simov / markdown-viewer

Markdown Viewer / Browser Extension
MIT License
1.11k stars 137 forks source link

Spaces in path names break embedded pictures #242

Open Korodny opened 5 months ago

Korodny commented 5 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 5 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