Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 510 Bytes

notion-utils.getpagetableofcontents.md

File metadata and controls

13 lines (8 loc) · 510 Bytes

Home > notion-utils > getPageTableOfContents

getPageTableOfContents variable

Gets the metadata for a table of contents block by parsing the page's H1, H2, and H3 elements.

Signature:

getPageTableOfContents: (page: types.PageBlock, recordMap: types.ExtendedRecordMap) => Array<TableOfContentsEntry>