github.com/abhinav/goldmark-toc (go): Package toc provides support for building a Table of Contents from a goldmark Markdown document.  The package operates in two stages: inspection and rendering. During inspection, the package analyzes an existing Markdown document, and builds a Table of Contents from it.  During rendering, it converts the Table of Contents into a list of headings with nested items under each as a goldmark Markdown document. You may manipulate the TOC, removing items from it or simplifying it, before rendering.  You can render that Markdown document using goldmark into whatever form you prefer.  The following diagram summarizes the flow of information with goldmark-toc.  Deprecated: Use "go.abhg.dev/goldmark/toc" instead.
Keywords: golang|markdown