Renderer for [[toc]] (Table of Contents) elements.
The table of contents is built from the pre-collected tocElements
in the render context (populated from the table-of-contents field
of the syntax tree). Each entry is rendered as a <div> with
margin-left indentation based on heading depth, matching Wikidot's
flat-div TOC format.
The TOC supports fold/unfold toggling via a #toc-action-bar with
Fold/Unfold links, handled at runtime by the toc runtime module.
Alignment options (left/right) produce a floated container.
Renderer for
[[toc]](Table of Contents) elements.The table of contents is built from the pre-collected
tocElementsin the render context (populated from thetable-of-contentsfield of the syntax tree). Each entry is rendered as a<div>withmargin-leftindentation based on heading depth, matching Wikidot's flat-div TOC format.The TOC supports fold/unfold toggling via a
#toc-action-barwith Fold/Unfold links, handled at runtime by thetocruntime module. Alignment options (left/right) produce a floated container.