Tomasz Wegrzanowski wrote:
On Sat, Jun 11, 2005 at 03:10:09PM -0700, Lee Daniel Crocker wrote:
The syntax only says that you can have five levels; the highest of these is "==" (I don't want to have any single-character markup). There's nothing that says you can't make "==" headings look identical to (or even bigger than) H1s with styles.
I might even have a piece of metadata that says "move all headings on this page up one level".
Do you have any particular reason to allow only 5 levels ? That breaks backwards compatibility and reduces range of allowed options for no good reason.
HTML < XHTML 2.0 provides only six levels of headings; our existing syntax, inherited from UseModWiki, directly maps each given ={1,6} to <h1>..<h6>. The first level is reserved by MediaWiki for the page itself.
We could do additional levels by using different elements for headings beyond <h6> in our HTML output, if we really needed to, but we don't support those now and I doubt there's much reason to add them.
Manually adding level-1 headings is deprecated already, but we let the current parser accept them as a stop-gap measure so that existing ones could be fixed up without breaking in the meantime. (IIRC, on the request of pl.wikipedia folks.)
A side note: XHTML 2.0 will introduce a new abstraction for headers based on nested <section>s, each of which can contain a <h>, to arbitrary depth: http://www.w3.org/TR/xhtml2/mod-structural.html#sec_8.5.
I'm not sure if that's a model we might want to consider; that kind of large-scale nesting doesn't really map well to the wiki model, which favors line-based chunks.
-- brion vibber (brion @ pobox.com)