wdpr
    Preparing search index...

    Module elements/toc

    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.

    Functions

    renderTableOfContents