webpro / reveal-md

reveal.js on steroids! Get beautiful reveal.js presentations from any Markdown file
MIT License
3.74k stars 416 forks source link

Image paths referencing parent directory not working #451

Closed lecodeski closed 1 year ago

lecodeski commented 1 year ago

imagine following directory structure:

[CWD]
|-- a.png
|-- talk
     |-- main.md

in main.md there is a reference to a.png which won't resolve in reveal-md: ![](../a.png)

OTOH generic MD readers do resolve this reference correctly.

All other constellations, like having the image in the same or in a subdirectory, work just fine.

webpro commented 1 year ago

Yes, reveal-md should be started from the root dir. It doesn't support serving files and references to ancestor directories.