Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-732

Optionally use H2 as the base level for hierarchy for the ToC

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Fix
    • Major
    • None
    • 15.10
    • Macro - Toc
    • None
    • Unknown
    • N/A

    Description

      Changes introduced in the context of https://jira.xwiki.org/browse/XWIKI-21370 and https://forum.xwiki.org/t/accessibility-proposal-removing-extra-h1s-from-the-page/13560/ make it so that the best practice is to have page content only contain H2 and below headings (because all that hierarchy is below the page title, a H1).

      This would cause the ToC macro to 'start' at the second level instead of the first one.

      I think it would make sense to remove the first level of heading if it's empty.

      Attachments

        Issue Links

          Activity

            People

              Lucas C Charpentier Lucas
              Lucas C Charpentier Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: