You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: I have passed an option from **mdast-util-toc** to make the table of contents more compact, for a full list of options check out the [options section](#options) below
57
+
56
58
then create an mdx document, for example `app/articles/page.mdx` and add some content with headings and the **table of contents placeholder** (put the placeholder in the document, where you want the toc to be displayed, can be anywhere you want):
57
59
58
60
```md
@@ -90,13 +92,13 @@ the output will look like this:
90
92
91
93
`options` (optional)
92
94
93
-
`options.mdx` (boolean, default: true)
95
+
`options.mdx` (`boolean`, default: true)
94
96
95
97
let's the plugin know if you are using mdx (mdx:true) or markdown (mdx: false)
96
98
97
99
`options.*`
98
100
99
-
this plugin uses [mdast-util-toc](https://github.com/syntax-tree/mdast-util-toc) to generate the toc, which means all **mdast-util-toc** options are supported:
101
+
this plugin uses [mdast-util-toc](https://github.com/syntax-tree/mdast-util-toc)under the hood, to generate the toc, which means all **mdast-util-toc** options are supported as well:
100
102
101
103
*`heading` (`string`, optional) heading to look for, wrapped in `new RegExp('^(' + value + ')$', 'i')`
102
104
*`maxDepth` (`number`, default: `6`) maximum heading depth to include in the table of contents. This is inclusive: when set to `3`, level three headings are included (those with three hashes, `###`)
0 commit comments