The TOC block automatically generates a list of links to all headers on the current page. It supports specifying a start and end level (e.g., from H2 to H4).
Tip:
This is very useful for long documentation pages to help users navigate.
Features
- Auto-Generated Links: Scans the page for headers and builds a clickable index.
- Custom Depth: Configure which header levels to include (e.g., H2 to H3 only).
- Improves UX: Crucial for long-form documentation so readers can jump to sections instantly.
How to use
Type /toc at the top of your page. The Table of Contents is generated dynamically upon rendering the page.