Thomas Mortagne wrote: > On Sat, Jan 3, 2009 at 4:49 PM, Marius Dumitru Florea < > [email protected]> wrote: >> >> Regarding the toc macro, I don't see the relation between header level >> and list level. I guess the toc macro generates: >> >> ** h2 >> **** h4 >> >> for >> >> == h2 == >> ==== h4 ==== >> >> while I personally expect >> >> * h2 >> ** h4 > > > What I expect is that the list level/style is always consitent with the > heading level/style: if you have two wiki pages, one with level one headers > and the other without level one headers you should not get the same toc IMO. >
How is such a list displayed? I remember trying to do something with nested lists a while back, and the browsers were rendering it differently. Although at the markup level for this scenario ** h2 **** h4 seems better, how will it be rendered? o o h2 o o h4 or: oo h2 oo h4 or: o h2 o h4 This is browser dependent, and except the last one (which isn't the one that will be rendered) they look somehow wrong to me. Yet, the ToC macro is not really a problem, because it is macro, and the WYSIWYG should not have to edit it. So, while the renderer could support incorrectly nested lists, I'm still in favor of keeping the WYSIWYG restrictive. This is the web, and this is a wiki, users should not waste time making nicely indented lists, but meaningful correct lists. -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

