Package: markdown
Version: 1.0.1-7
Severity: normal
This example of quoted text inside a list works perfectly, as the
Markdown syntax documentation says it should:
-- snip here --
* Foo.
* Bar:
> Some quoted text inside Bar.
More of Bar.
* Baz.
-- snip here --
Running markdown over this produces the expected HTML:
-- snip here --
<ul>
<li><p>Foo.</p></li>
<li><p>Bar:</p>
<blockquote>
<p>Some quoted text inside Bar.</p>
</blockquote>
<p>More of Bar.</p></li>
<li><p>Baz.</p></li>
</ul>
-- snip here --
However, if the <ul> is inside another <ul>, Markdown gets horribly
confused:
-- snip here --
+ Item 1.
+ Item 2:
* Foo.
* Bar:
> Some quoted text inside Bar.
More of Bar.
* Baz.
-- snip here --
Markdown turns this into:
-- snip here --
<ul>
<li><p>Item 1.</p></li>
<li><p>Item 2:</p>
<ul>
<li><p>Foo.</p></li>
<li><p>Bar:</p></li>
</ul>
<blockquote>
<p>Some quoted text inside Bar.</p>
</blockquote>
<p>More of Bar.</p>
<ul>
<li>Baz.</li>
</ul></li>
</ul>
-- snip here --
Note that the inner <ul> is closed before the blockquote and re-opened
at the next <li>. I think this behavior is surprising; I would have
expected the blockquote and following text to be part of the <ul>.
It appears that there's a workaround: adding extra indents to the
list item in question and the blockquote gives me what I would expect on
output:
-- snip here --
+ Item 1.
+ Item 2:
* Foo.
* Bar:
> Some quoted text inside Bar.
More of Bar.
* Baz.
-- snip here --
compiles to:
-- snip here --
<ul>
<li><p>Item 1.</p></li>
<li><p>Item 2:</p>
<ul>
<li><p>Foo.</p></li>
<li><p>Bar:</p>
<blockquote>
<p>Some quoted text inside Bar.</p>
</blockquote>
<p>More of Bar.</p></li>
<li><p>Baz.</p></li>
</ul></li>
</ul>
-- snip here --
Daniel
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages markdown depends on:
ii perl 5.8.8-12 Larry Wall's Practical Extraction
markdown recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]