Markdown generates invalid html for a list immediately followed by a quote

Matt Kraai kraai at ftbfs.org
Tue May 22 23:48:05 EDT 2007


Howdy,

[Please preserve the CC to 424919-forwarded at bugs.debian.org on any
replies.]

The following bug in Markdown was reported to the Debian bug tracking
system. In short, running both the released version of Markdown and
the latest beta on

* foo
> bar
> baz

produces invalid HTML.

----- Forwarded message from Joey Hess <joeyh at debian.org> -----

From: Joey Hess <joeyh at debian.org>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: Bug#424919: generates invalid html for a list element immediately followed by a quote
Date: Thu, 17 May 2007 16:07:35 -0400
X-Spam-Status: No, hits=-8.5 required=4.0 tests=BAYES_00,FROMDEVELOPER,
HAS_PACKAGE,HTML_MESSAGE,RCVD_IN_SORBS autolearn=ham
version=2.60-bugs.debian.org_2005_01_02

Package: markdown
Version: 1.0.1-6
Severity: normal

joey at kodama:~>cat foo
* foo

> bar

> baz

joey at kodama:~>markdown foo
<p><ul>
<li>foo</p>

<blockquote>
<p>bar
baz</li>
</ul></p>
</blockquote>

Notice that the closing tags are not in the right order..

If a newline is added before the quote, it closes the list before starting
the blockquote, so that's a workaround.

(This also happens with markdown 1.0.2~b8-1)

-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.20-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages markdown depends on:
ii perl 5.8.8-7 Larry Wall's Practical Extraction

markdown recommends no packages.

-- no debconf information

--
see shy jo



----- End forwarded message -----

--
Matt


More information about the Markdown-Discuss mailing list