Skip to content

Headings & TOC

Section headings

Wrap a line in equals signs. The number of = on both sides must match and sets the level (1 = biggest, 6 = smallest):

= Top level =
== Section ==
=== Subsection ===
====== Smallest ======
You typeLevel
= Title =1
== Title ==2
=== Title ===3
====== Title ======6

Each heading automatically gets:

  • An anchor derived from its text (spaces become _, special characters are dot-encoded), so you can link to it: [[#Section]] on the same page, or [[Page#Section]] from elsewhere. Duplicate heading names get _2, _3, … suffixes.
  • A section number (1, 1.1, 1.2, 2, …), computed from the heading hierarchy.
  • Collapsibility — click a heading to fold or unfold everything under it.

Table of contents

A table of contents is generated automatically once a page has 4 or more headings, placed just before the first heading. You can override that with a behavior switch — type one of these anywhere on the page (they're removed from the output):

SwitchEffect
__TOC__Force the TOC on and pin it here, exactly where you put the marker. If you write it more than once, the first wins and the rest are dropped.
__FORCETOC__Force the TOC on even with fewer than 4 headings (in the default position).
__NOTOC__Suppress the TOC entirely.

The TOC renders as a collapsible Contents box listing every heading with its number.

Recognized but currently no-ops

__NOGALLERY__, __NOEDITSECTION__, __NOCONTENTCONVERT__, and __NOTITLECONVERT__ are accepted and stripped, but have no effect in this version.

HonoWiki Engine guide