Jim Higson wrote:
What should be the output from something like:
** foo ** bar
Should there be a 'phantom' listitem to contan the nested list, such as:
[snip]
Or is it valid for a List to directly contain a list, ie:
In HTML, a list cannot directly contain another list; the child list must sit inside a list item. If you break the list tree by skipping a level in this way you will get a phantom bullet point.
(If you just want to indent to second level, you can do this:
:* foo :* bar
which will make the top-level list a definition list which has no visible item marker.)
Of course, starting two lists like that is bad syntax, but parsable. I can build a decent parse tree of list wikitext now, but I'm not sure which is the correct XML output.
It could be perfectly good and correct if that's how that schema is defined. However it may be better to stick with how the HTML lists work.
-- brion vibber (brion @ pobox.com)