Possible bug in Markdown.pl with `<<` handling

Michel Fortin michel.fortin at michelf.com
Wed Sep 13 14:23:33 EDT 2006

Le 13 sept. 2006 à 13:57, John Gruber a écrit :

> This is perhaps a contrived example, but if someone put this in a

> Markdown document:


> <<?php print "p";?>>


> they might reasonably expect the output to be:


> <p>


> not:


> &lt;&lt;?php print "p";?&gt;&gt;

Except that Markdown currently converts that to:

&lt;<?php print "p";?>>

which makes the final output:


It doesn't really invalidate your point, it's only one more proof
that `<<` defies everyones' expectations.

Michel Fortin
michel.fortin at michelf.com

More information about the Markdown-Discuss mailing list