Next.js Discord

Discord Forum

I want to extract table of contents from markdown

Unanswered
Iridescent shark posted this in #help-forum
Open in Discord
Iridescent sharkOP
I want to extract table of content from markdown. I have a markdown for a blog article with different headers. What library can I use to extract table of contents from markdown and save it to array, so I can render it on the side bar next to blog article body? Maybe you have a link to a working example?I tried some libraries but didn't manage it to work

1 Reply