Retrieving Table of Contents/Headers from Markdown - Next.js #2162
-
Hi there! I'm currently using mdx-js/react with next/mdx. I've sample
I'm trying to find a way to extract but it seems to work pre v2, and no longer with version 2+ as current items are not having |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There are several ways, check out previous answers to this question for some ideas:
in particular: https://github.com/stefanprobst/rehype-extract-toc#how-to-use-with-mdx may be of interest to you |
Beta Was this translation helpful? Give feedback.
There are several ways, check out previous answers to this question for some ideas:
in particular: https://github.com/stefanprobst/rehype-extract-toc#how-to-use-with-mdx may be of interest to you