Mixing inline, reference with image links
Michel Fortin
michel.fortin at michelf.com
Sat Apr 16 11:58:48 EDT 2005
Le 16 avr. 2005, à 11:30, William Jackson a écrit :
> [![alt text](/path/to/img.jpg)][link]
What happens is that the reference image regex thinks the alt text is
this:
alt text](/path/to/img.jpg)
So the intermediary product is this strange thing:
[<img src="http://example.com/" alt="alt text](/path/to/img.jpg)" />
Then when searching for a link, Markdown finds this link:
Content: <img src="http://example.com/" alt="alt textalt text
URL: /path/to/img.jpg
Tailing text: />
And it produce what you found.
I've fixed a local copy of PHP Markdown here by using the nested
bracket regex when matching alt text.
Michel Fortin
michel.fortin at michelf.com
http://www.michelf.com/
More information about the Markdown-Discuss
mailing list