ttscoff / nv

MultiMarkdown version of Notational Velocity with Markdown editing features and preview
http://brettterpstra.com/projects/nvalt
BSD 3-Clause "New" or "Revised" License
1.77k stars 197 forks source link

Preview does not render images with relative paths #28

Open metbril opened 13 years ago

metbril commented 13 years ago

If I create a reference to a file with a relative path (e.g. "./img/logo.gif") in a Markdown document, the images is not rendered. Instead it shows a question mark. If I use a full path, it shows as expected.

I have tried these relative paths:

![Logo](./img/logo.gif) ![Logo](file:./img/logo.gif) ![Logo](file://./img/logo.gif)

Working: ![Logo](file:/users/me/Documents/txt/img/logo.gif)

madranet commented 5 years ago

Hmmm... over 7 years later. But, for what it's worth "Me too!"

It makes a folder of NValt notes and images less portable, if we can't use relative URLs. Is it not possible to read the BaseURL from NValt's preferences and automatically add that to a relative image URL?