rehype-toc
rehype-toc copied to clipboard
[Feature Request] Add Extract ToC
I would like to extract the TOC without injecting it back so I can have a bit more control of what to do with it.
Primarily the rendering of such content will be completely out of the element that renders the mdx
that I have set up and is able to read the ToC on the server-side so I can create filtering.