Table of Contents
Extract headings from your document
Usage
It extracts the headings of a MDX document to vfile.data.toc
. You may write your
own plugin to convert it into a MDX export.
If your heading doesn't have an id, it will add one automatically.
Output
An array of TOCItemType
.
Prop | Type | Default |
---|---|---|
title | string | - |
url | string | - |
depth | number | - |
Last updated on