#More depth in the docs hierarchy
1 messages · Page 1 of 1 (latest)
You can use the getHeadings() function https://docs.astro.build/en/guides/integrations-guide/mdx/#getheadings it returns an object with a depth, slug, and text of each heading, then you can map over it to create a list of links like above