Blot

Make an image into a link with Markdown?

Has anyone managed to place a link around an image via markdown? Normally, according to markdown rules, this would look something like this:

![Collection of my cat pictures](/path/to/catfolder/cat1.png)(/tagged/cats)

But for some reason, in my case, the URL part is not recognized but somehow becomes a text which then sits underneath the image.

Asked 3 years ago Edit
3 replies

As far as I know, the whole of the image markdown has to be enclosed in the link markdown:

[![pic caption](url/to/pic.png)](url/for/link)

3 years ago Edit

Oh my god, you don't know how much this helped me. Thank you so much! Would perhaps be useful to add this to the documentation on images in markdown

3 years ago Edit

I added this to the documentation – please let me know if you have any questions

3 years ago Edit

Your reply