Closed jamescooke closed 1 year ago
Good catch! And thank you for the very clear report/reproduction steps too.
Bonus points for including kittens!
Thanks again for raising this.
Thanks @davep - I've installed main
and got the relatively linked images working in my local docs now 🎉
Thanks for confirming. 🙂
Current behaviour
Frogmouth is not able to open resources relative to the current markdown file when that is not in the current directory. For example, for a file and image in a
doc
directory:Clicking on the "Some image" link brings up a "Does not exist" box:
Expected behaviour
Browser window opens with the image.
This behaviour happens when frogmouth runs in the
doc
directory, so it's able to open files when they're in the current dir.However, when opening files by passing a file in a different directory, or using the navigation to load a file in an alternate directory, relative paths from markdown no longer work.