interface TOCNode

A single node in the table of contents tree.

Properties

level: number

Heading level (2-6)

text: string

Text content of the heading

slug: string

URL-safe slug generated from heading text

url: string

Full URL to the heading (includes page URL + #slug)

Nested child headings

Usage

import { type TOCNode } from ".";