MarkDown bug with lists?

Lasar Liepins lasar at liepins.net
Tue Mar 1 06:15:15 EST 2005


Hello.

I made a list that looks like this:

- 0. NOTES
- 1. SETTING UP PHPLIB
- 2. SETTING UP SMARTY
- 3. SETTING UP A DBEDIT OBJECT
     - 3.1. NEW_FIELD() PARAMETERS
- 4. SIMPLE DATABASE FRONTEND
- 5. DATA EDITING METHODS
- 6. CUSTOMIZING DBEDIT
- 7. THE TEMPLATES
     - 7.1. LIST
     - 7.2. EDIT
     - 7.3. SEARCH

Now when I MarkDown this list, I get the following code:

<ul>
<li><ol>
<li>NOTES</li>
</ol></li>
<li><ol>
<li>SETTING UP PHPLIB</li>
</ol></li>
<li><ol>
<li>SETTING UP SMARTY</li>
</ol></li>
<li><ol>
<li>SETTING UP A DBEDIT OBJECT</li>
<li>3.1. NEW_FIELD() PARAMETERS</li>
</ol></li>
<li><ol>
<li>SIMPLE DATABASE FRONTEND</li>
</ol></li>
<li><ol>
<li>DATA EDITING METHODS</li>
</ol></li>
<li><ol>
<li>CUSTOMIZING DBEDIT</li>
</ol></li>
<li><ol>
<li>THE TEMPLATES</li>
<li>7.1. LIST</li>
<li>7.2. EDIT</li>
<li>7.3. SEARCH</li>
</ol></li>
</ul>

This seems rather wrong to me. When I remove the numbers from the 
beginning of the list items, it produces a fine unordered list. Which 
is what I expected, even with the numbers there. The line begins with a 
dash, so it should be a <ul> and nothing more, no?

Should I just work around this or is this worthy of a fix?

Thanks,

_Lasar

-- 
_Lasar Liepins                     0: http://liepins.net/
  lasar at liepins.de                  1: http://liepins.de/
                                    n: http://w42.de/
Nur was nicht ist, ist möglich. (Einstuerzende Neubauten)



More information about the Markdown-Discuss mailing list