PageHeader #

A heading of a page, with the headings nested below it.

Fields #

levelnumber

Heading level, from 1 for h1 to 6 for h6.

titlestring

Heading text.

slugstring

Anchor id of the heading.

linkstring

Link to the heading, for example #install.

childrenPageHeader[]

Headings nested below this one.

Full type signature
TypeScript
interface PageHeader {
  level: number
  title: string
  slug: string
  link: string
  children: PageHeader[]
}

Edit this page

Comments