Headings and table of contents

see: HelpOnHeadlines

Table of contents:
<<TableOfContents()>>

Table of contents (up to 2nd level headings only):
<<TableOfContents(2)>>

= heading 1st level =
== heading 2nd level ==
=== heading 3rd level ===
==== heading 4th level ====
===== heading 5th level =====
====== no heading 6th level ======

Table of contents: <<TableOfContents: execution failed [list index out of range] (see also the log)>>

Table of contents (up to 2nd level headings only): <<TableOfContents: execution failed [list index out of range] (see also the log)>>

heading 1st level

heading 2nd level

heading 3rd level

heading 4th level

heading 5th level

no heading 6th level