- How are heading levels handled?
- H1 is usually the document title (not in TOC). H2–H6 become TOC entries with progressive indentation. Configurable — set the range to H3–H4 only if that fits your doc.
- Does it handle duplicate headings?
- Yes — if two headings have the same text, GitHub appends `-1`, `-2` suffixes to slugs. The TOC generator matches this behavior so anchor links work.
- What about non-English headings?
- The slug generator lowercases, strips punctuation, and replaces spaces with hyphens. Unicode letters (CJK, Cyrillic) are preserved; GitHub's algorithm matches.
- Can I skip specific headings?
- Add `<!-- skip-toc -->` inline with any heading and the generator excludes it. Useful for appendix sections or navigation headings.