[BUG] Link around an image

Steve Hoelzer shoelzer at gmail.com
Mon Sep 19 10:11:32 EDT 2005


Putting an image in a link like this:

[![alt](image.gif)][link]

[link]:somewhere.html

give bad HTML:

<p><a href="image.gif"><img src="somewhere.html" alt="alt</a>" /></p>


Doing it this way:

[![alt](image.gif)](somewhere.html)

gives the intended result:

<p><a href="somewhere.html"><img src="image.gif" alt="alt" title="" /></a></p>


Steve Hoelzer

P.S. I searched the archives for a couple months and didn't see any
reference to this. Sorry if it's a dup....


More information about the Markdown-Discuss mailing list