ghmarkdown
ghmarkdown copied to clipboard
Can I read local images?
Hi, can I insert inline local images?
I'm using the following command:
ghmarkdown -lsi myfile.txt
Then inside my markdown document, I have tried to insert an inline image (located inside the images folder next to myfile.txt):



None of those work. Is there anything to do about it, or do I have to switch to serve images from another (external) location?
To read local images, you could use the file protocol.

Doesn't work for me.
It's a bug with the GitHub markdown API:
curl --data '' -H "Content-type: text/plain" "https://api.github.com/markdown/raw"
yields
<p><a href="" target="_blank"><img alt="my_image" title="my_image" style="max-width:100%;"></a></p>
when it should output
<p><a href="file:///Users/lucasem/my_image.png" target="_blank"><img src="file:///Users/lucasem/my_image.png" alt="my_image" title="my_image" style="max-width:100%;"></a></p>
I just sent a support request to GitHub about it. Thanks for pointing this out!