There is one caveat which is the number of <h?> available.. They go from H1 to H6. We need to be sure to use only 6 levels
Ludovic Vincent Massol wrote: > Hi, > > I'd like to modify our rendering for section titles and use matching H > tags. For example for "1.1" I'd like to use h2 and not h3 and h1 for > "1". > The main reason for this need (beyond it being more logical) is in the > new rendering. The XHTML parser I use (the one in wikimodel) will > automatically transform h2 into a level 2 section title. > > In addition I'd like the HTML class element to be heading-X (e.g. > heading-1, heading-2, etc) instead of heading-1, heading-1-1, > heading-1-1-1, etc. > > I have 2 options here: > 1) modify the current code to generate the <h> tag and the matching > heading-X class attribute > 2) only add new css definitions for heading-X class attributes (and > thus keep the old heading-1-1-1 ones too) > > Option 2) is much simpler since option 1 involves modifying our > wysiwyg editor code too (and I don't know it at all). > > WDYT? > > Thanks > -Vincent > > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs > > -- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

