toland/qlmarkdown — pull request #12 by thomasaw (2012-05-05 07:23:01+00:00)
Title: Image support in qlmarkdown previews

It appears that images are not appearing in markdown previews. This can be seen if you preview the sample.md document and scroll down. It seems that the QuickLook html interpreter doesn't interpret the images being in a location relative to markdown document.

There are three ways to address this issue:

1) Set the base href of the html
2) Set the references to the images to be absolue references to the image files
3) Set the images data as properties in the call to QLPreviewRequestSetDataRepresentation()

#1 is the least intrusive, lightweight and easy to implement change and it is what I've included in this patch.