Home > notion-utils > getPageTableOfContents
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>