[ANN] Markdown.pl 1.0.2b7
John Gruber
gruber at fedora.net
Wed Aug 30 20:12:10 EDT 2006
Allan Odgaard <29mtuz102 at sneakemail.com> wrote on 8/30/06 at 8:15 AM:
> Was there an advantage to Text::Balanced?
The advantage is that it works with things like:
<div>
<div>
<div>
foo
</div>
<div style=">"/>
</div>
<div>bar</div>
</div>
and I thought it was going to save me from writing tag-balancing
code on my own.
But the problem, as I see it, is that it is hopelessly confused by
tag attributes. When it sees:
<div id="bar">
it looks for a closing tag like
</div id="bar">
which is of course silly.
-J.G.
More information about the Markdown-Discuss
mailing list