ekalinin/github-markdown-toc

Easy TOC creation for GitHub README.md

View on GitHub ↗Jump to charts ↓Open shareable report →

ekalinin/github-markdown-toc has 3k+ stars and 2.5k+ forks on GitHub, is written in Shell, and was last pushed on Oct 16, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 27 minutes ago
Added to GitGenius on September 27th, 2026
Created on September 2nd, 2014
Open Issues & Pull Requests: 22 (+0)
GitHub issues: Enabled
Number of forks: 2,670
Total Stargazers: 3,304 (+0)
Total Subscribers: 35 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 35.5 hours
Mean response time: 456.9 days
90th percentile: 3493.9 days
Tracked items: 9

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 3
New in 7 days: 1
Closed in 7 days: 1
Avg open age: 0 days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 1
Closed in 7 days: 1
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (4)
  • enhancement (3)
  • documentation (1)
  • question (1)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

github-markdown-toc is a shell script that generates tables of contents for GitHub README files and wiki pages without requiring additional software installation.

The tool solves the problem of manually creating and maintaining table of contents in markdown documentation. It works by parsing markdown headers and generating clickable links that can be inserted into a document. The tool can process input from three sources: standard input, local markdown files on the filesystem, and remote HTML files hosted on GitHub. It supports processing multiple files in a single command and can automatically insert and update tables of contents within marked sections of a file using comment delimiters.

The tool suits developers who want a lightweight, dependency-free solution for managing documentation structure. It works well for projects that need to keep README files synchronized with their actual content structure. For Windows users, the README recommends a Go-based implementation as a more reliable alternative with parallel processing capabilities and no dependencies. The tool can be integrated into GitHub Actions workflows for automated table of contents generation and updates.

The project maintains active testing infrastructure using the bats testing framework. The tool has been verified to work on Ubuntu and macOS, with Docker support available for containerized environments. GitHub token authentication is supported for handling rate-limiting issues when processing remote files. The codebase relies on standard Unix utilities including curl or wget, awk, grep, and sed, keeping the dependency footprint minimal.