Paste a Markdown document and get a nested table of contents with GitHub-style anchor links, headings inside code fences ignored, and the depth range and list style under your control.
The result appears hereThe same way GitHub does it: lowercase, punctuation removed, spaces turned into hyphens, and a repeated heading gets -1, -2 and so on. Letters outside ASCII are kept, so a heading in any language still links.
The range starts at H2 by default because a document usually has one H1 and it is the title, not a section. Set From to H1 if you want it in the list.
No. A line starting with # inside a fenced block is a shell comment or a Markdown sample, not a heading, so fences are skipped entirely.