Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Ill-formed HTML for lists and blockquotes #5

Open
dandv opened this Issue Aug 25, 2009 · 0 comments

Comments

Projects
None yet
1 participant
Contributor

dandv commented Aug 25, 2009

Migrated from https://rt.cpan.org/Ticket/Display.html?id=37945

Sat Jul 26 2008 http://gmcmanus.myopenid.com/ - Ticket created

Consider the following markdown document:

- a
> b

markdown produces this ill-formed HTML:

<p><ul>
<li>a</p>

<blockquote>
<p>b</li>
</ul></p>
</blockquote>

I'm using Text-Markdown-1.0.21 (debian sid package
libtext-markdown-perl_1.0.21-1), with perl v5.10.0.

Sat Jul 26 2008 BOBTFISH - Correspondence added

On 26 Jul 2008, at 05:19, http://gmcmanus.myopenid.com/ via RT wrote:

Severity: Important

I'm using Text-Markdown-1.0.21 (debian sid package
libtext-markdown-perl_1.0.21-1), with perl v5.10.0.

This is a known bug, and all implementations which trace themselves
back to John Gruber's original one exhibit this behavior:

http://babelmark.bobtfish.net/?markdown=+-+a%0D%0A%3E+++b%0D%
0A&normalize=on&src=1&dest=2

It's also somewhat hard to fix with the current parser - i.e. I think
it's a re-write of significant bits of the code. :( I'll leave the
ticket open however, as it's on my todo list some day...

Cheers
Tom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment