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

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


[Please preserve the CC to 424919-forwarded at on any

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> -----

From: Joey Hess <joeyh at>
To: Debian Bug Tracking System <submit at>
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,

Package: markdown
Version: 1.0.1-6
Severity: normal

joey at kodama:~>cat foo
* foo

> bar

> baz

joey at kodama:~>markdown foo


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 -----


More information about the Markdown-Discuss mailing list