@wdprlib/render
    Preparing search index...

    Function renderTableOfContents

    • Render a [[toc]] table of contents block.

      Non-floating TOC is wrapped in a <table> for Wikidot layout compatibility. Floating TOC (align left or right) uses a <div> with a float class.

      The TOC container uses fixed IDs (#toc, #toc-action-bar, #toc-list) that the runtime toc module queries for fold/unfold toggling.

      Parameters

      • ctx: RenderContext

        The current render context.

      • data: TableOfContentsData

        TOC configuration data with optional alignment.

      Returns void