Take the following input and both `Markdown.pl` and PHP Markdown will fail: ~~~Input~~~~~~ Codeblock ~~~End~~~~~~~ ~~~Expected~~~~ <pre><code> Codeblock</pre></code> ~~~End~~~~~~~ ~~~Actual Result~~ <p>Codeblock</p> ~~~End~~~~~~~~ There is already a testcase in MDTest for codeblocks in the first line, though the above is still not handled properly! -- Milian Wolff http://milianw.de OpenPGP key: CD1D1393 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. Url : <http://six.pairlist.net/pipermail/markdown-discuss/attachments/20071029/34d2677c/attachment.pgp>
Le 2007-10-29 ? 14:19, Milian Wolff a ?crit :> There is already a testcase in MDTest for codeblocks in the first > line, though > the above is still not handled properly!Well, PHP Markdown works as expected with a code block on the first line. It doesn't work with a code block on the second line though. I'm adding a test right now so that I don't forget it when I work on the next release. Michel Fortin michel.fortin at michelf.com http://michelf.com/