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 =
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.