Table of Contents
Extract headings from your document
Usage
It extracts headings of the MDX document to vfile.data.toc
. You may write your
own plugin to convert it into a MDX export.
Output
An array of TOCItemType
.
TOCItemType
Prop | Type | Description |
---|---|---|
title | string | Title of heading |
url | string | Href url |
depth | number | From 1 to 6 |
Last updated on