@sveltinio/remark-headings (npm): Extracts the headings tree from your markdown and add it to the frontmatter.
Keywords: remark plugin|mdast|headings|toc|mdsvex|table of contents|vFile|remark-plugin|table-of-content-extraction|table-of-contents