The following wiki markup:
 

[[Image:Michelino DanteAndHisPoem.jpg|thumb|right|250px|''La commedia illumina Firenze'' in the dome of [[Santa Maria del Fiore]]]]

is rendering using the API function (api.php?action=render&text=[[Image:Michelino DanteAndHisPoem.jpg|thumb|right|250px|''La commedia illumina Firenze'' in the dome of [[Santa Maria del Fiore]]]]) as follows:

<div class="thumb tright"><div class="thumbinner" style="width:252px;"><a href="<a href="http://en.wikipedia.org/wiki/Image:Michelino_DanteAndHisPoem.jpg"">http://en.wikipedia.org/wiki/Image:Michelino_DanteAndHisPoem.jpg"</a> class="image" title="La commedia illumina Firenze in the dome of Santa Maria del Fiore"><img alt="La commedia illumina Firenze in the dome of Santa Maria del Fiore" src="<a href="http://upload.wikimedia.org/wikipedia/en/thumb/e/e2/Michelino_DanteAndHisPoem.jpg/250px-Michelino_DanteAndHisPoem.jpg"">http://upload.wikimedia.org/wikipedia/en/thumb/e/e2/Michelino_DanteAndHisPoem.jpg/250px-Michelino_DanteAndHisPoem.jpg"</a> width="250" height="203" border="0" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="<a href="http://en.wikipedia.org/wiki/Image:Michelino_DanteAndHisPoem.jpg"">http://en.wikipedia.org/wiki/Image:Michelino_DanteAndHisPoem.jpg"</a> class="internal" title="Enlarge"><img src="/skins-1.5/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><i>La commedia illumina Firenze</i> in the dome of <a href="<a href="http://en.wikipedia.org/wiki/Santa_Maria_del_Fiore"">http://en.wikipedia.org/wiki/Santa_Maria_del_Fiore"</a> title="Santa Maria del Fiore">Santa Maria del Fiore</a></div></div></div><FONT face=Arial size=3>Notice that the first <a> tag has an <a> tag in it's href attribute. This cannot be right. Is this a bug?</FONT><FONT face=Arial size=3></FONT>&nbsp;<FONT face=Arial size=3>Scott</FONT> <FONT face=Arial></FONT>&nbsp;<FONT face=Arial></FONT>&nbsp;<FONT face=Arial></FONT>&nbsp;<FONT face=Arial></FONT>&nbsp;