If I remember correctly, my C++ parser ("waikiki" package in CVS) does this correctly. It remembers the list state of the last line parsed ("*" or "###" or ...), then 1. falls back with "</LI></UL>" (or the like) to the current level, if necessary 2. adds new "<UL><LI>" (or the like) to reach the current level, if necessary I also should handle mixed lists correctly ("**", then "###").
Those who dare read C++, have a look! :-)
Magnus
Brion Vibber wrote:
Philip Newton wrote:
On Fri, 02 Jul 2004 03:29:58 +0100, Timwi timwi@gmx.net wrote:
I'm pretty sure it is invalid HTML to put a UL directly inside a UL without an LI in between.
That is my understanding, too.
We went through this question a couple years ago and, yes, that's illegal. The correct way to nest is like this:
- Item
** Subitem
<ul> <li> Item <ul> <li>Subitem</li> </ul> </li> </ul>
Obviously this isn't very forgiving to skipping levels.
-- brion vibber (brion @ pobox.com)
Wikitech-l mailing list Wikitech-l@Wikipedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l