Brett on 21 Oct, 2011 02:41 PM
Do you want the pictures to appear in the document, or just be
linked? If they are to appear in the document, you need to use
![alt text](image path) (with the exclamation point).
If you just want to link them, you should be able to do so
with the syntax you're using, but Marked will probably not open the
links internally, as they link to raw image files and Marked will
reject anything it can't recognize as plain text. Let me know if
Thanks, you are correct. If I save my file as html and open it in Chrome the
“file://“ link does work. However, if I save as a PDF the links appear
highlighted but the PDF does not preserve the links. Is preserving links in
a pdf possible?
Brett on 21 Oct, 2011 05:38 PM
Nevermind, I figured out what's going on. No, you can't save
local image links in a PDF, apparently. You should be able to host
the files on Dropbox or similar and use remote links (http://) to preserve the links in PDF output.
Brett on 21 Oct, 2011 05:42 PM
I just got your test file and apparently I'm wrong again. While
links to documents are preserved, no image links appear to make it
into the PDF.
I tested outputting the HTML (the links work) and saving a PDF
from Safari (image links break). I don't know offhand why this
happens, but it appears to be an issue with webkit in general. I
don't have an immediate solution, I'm afraid.
Thanks, it works fine.
I use Markdown in ipython notebooks where spaces in path are handled automatically. Since the idea of Markdown is to not have to write HTML, this approach felt so natural I never gave it a second thought.