Trevixal API
    Preparing search index...

    Function createDocumentOutline

    • A sidebar showing the document's block structure, headings plus the blocks a writer navigates by (code, tables, lists), and highlighting whichever row contains the selection.

      Depth comes from heading level for headings, and from the nearest enclosing heading for everything else, so a code block under an h2 sits one level in rather than at the root.

      Parameters

      Returns DocumentOutline