markdown-toc — generate table of contents from Markdown headers. Reads markdown from stdin, outputs nested TOC with anchor links.
Part of supercli ecosystem.
curl -LO https://github.com/javimosch/markdown-toc/releases/latest/download/markdown-toc-linux-amd64
chmod +x markdown-toc-linux-amd64; sudo mv markdown-toc-linux-amd64 /usr/local/bin/markdown-toc