Le 2007-09-02 à 10:23, Milian Wolff a écrit :
PHP Markdown v 1.0.1i and PHP Markdown Extra v 1.1.5 generate
invalid HTML for
code blocks
Take this input:
paragraph
codeblock
Markdown will generate:
<p>paragraph</p>
<pre><code>codeblock
</pre></code>
Notice the wrong position of the closing code tag.
Oh my! That's a typing error, and it did not fail the testsuite!
I said previously that the HTML normalizer in MDTest wasn't quite
optimal (although better than Tidy) and that's why: it doesn't catch
this kind of misnested tags. Otherwise I'd have got failed tests
everywhere. Perhaps it's time MDTest uses its own stricter HTML
parser instead of the too forgiving parser in PHP 5.
I'll fix that promptly, thanks for that report.
Michel Fortin
[EMAIL PROTECTED]
http://www.michelf.com/
_______________________________________________
Markdown-Discuss mailing list
Markdown-Discuss@six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss