[Home]WikiBugs/NumberedHeadingLevelOneNotInToc

UseModWiki | WikiBugs | RecentChanges | Preferences

1. heading 2.1
2. heading 2.2

heading 1

heading 2

1. heading 2.1

2. heading 2.2

heading a3

Why is it that the first level headings don't appear in the table of contents?

If I read the code correctly,

  s/(^|\n)\s*(\=+)\s+([^\n]+)\s+\=+/&WikiHeading($1, $2, $3)/geo;

it should also match

= # heading 1 =


In the code, I read:

return '' unless --$depth > 0;  # Don't number H1s because it looks stupid

which explains a lot, except the lack of documentation.

I'll go add this to the documentation.


UseModWiki | WikiBugs | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited October 21, 2007 10:37 am by JuanmaMP (diff)
Search: