👩💻 Join our community of thousands of amazing developers!
https://github.com/frnmst/md-toc: Automatically generate and add an accurate table of contents to markdown files. Adopting it via pre-commit in a git repository is very straightforward: .pre-commit-config.yaml: repos: - repo: https://github.com/frnmst/md-toc rev: 4a8b796dbde00f71eb1a51b075462f825f872c34 # frozen: 9.0.0 hooks: - id: md-toc Next, update README.md to include <!--TOC--> where the table of contents should be inserted. Run pre-commit run -a md-toc once to generate and preview th...