How I can implement Table of contents section for blogs in next js using strapi?

Anybody has solutions for this?

This topic has been created from a Discord post (1222283589496864899) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

Hi <@1219372919982129434> have you made any progress?

Have you got something on that?

If you are using the new Blocks editor, it saves content as a JSON object. You can write a little recursive function to walk that json and generate a TOC according to your needs

or you could write a react component that does this recursion itself