[ANN] Markdown 1.0.1b2

Nikita Zhuk nikita.zhuk at karppinen.fi
Sat Nov 6 00:55:34 EST 2004


On 6.11.2004, at 02:27, John Gruber wrote:

> +   Fixed annoying bug where nested lists would wind up with
>     spurious (and invalid) `<p>` tags.


Is there any chance to change the behaviour of converting multiple 
lists (not nested lists, but lists which follow one after eachother 
without any other block-level elements between them)? Current 
implementation converts 2 lists:

* item 1.1
* item 1.2


* item 2.1
* item 2.2

...into 1 list:

<ul>
<li>item 1.1</li>
<li><p>item 1.2</p></li>
<li><p>item 2.1</p></li>
<li>item 2.2</li>
</ul>

However, it would be nice to see the following result:

<ul>
     <li>item 1.1</li>
     <li>item 1.2</li>
</ul>
<ul>
     <li>item 2.1</li>
     <li>item 2.2</li>
</ul>


Same thing goes to ordered lists, of course. I realize that a single 
new line between list items is considered as paragraph belonging to the 
list item, as in the example on Markdown's site:

*   Bird

*   Magic

will turn into:

<ul>
	<li><p>Bird</p></li>
	<li><p>Magic</p></li>
</ul>

but maybe it would be acceptable to consider 2 or more new lines 
between list items as delimiter between different lists ? So that

*   Bird


*   Magic

would turn into:

<ul>
	<li>Bird</li>
</ul>
<ul>
	<li>Magic</li>
</ul>


--
Nikita Zhuk
Mac OS & Web Developer
http://www.nikitazhuk.net
nikita at nikitazhuk.net



More information about the Markdown-discuss mailing list