Skip to content

Section

Section = BaseNode & object

Defined in: types/ast.generated.ts:10

AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY

Generated from: schema/spec-ast.schema.json Generated at: 2026-01-02T15:58:42.008Z

Regenerate with: npx ts-node scripts/generate-types.ts

children: (Section | Block)[]

optional heading: BaseNode & object

Optional section heading

children: Inline[]

depth: number

optional id: string

Optional explicit heading ID

type: "heading"

optional unnumbered: boolean

If true, the section created from this heading will be unnumbered.

optional id: string

Optional explicit section identifier

type: "section"

optional unnumbered: boolean

If true, this section and its descendants do not increment the TOC counter at this level.