{"id":21651640,"url":"https://github.com/hoytech/md-toc","last_synced_at":"2026-01-27T17:02:39.808Z","repository":{"id":200827643,"uuid":"706332099","full_name":"hoytech/md-toc","owner":"hoytech","description":"Markdown Table Of Contents Generator","archived":false,"fork":false,"pushed_at":"2024-06-22T03:34:17.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-17T20:47:45.820Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hoytech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-10-17T18:32:10.000Z","updated_at":"2024-08-21T05:51:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"252caf46-62b9-4272-90fa-efb950b7e790","html_url":"https://github.com/hoytech/md-toc","commit_stats":null,"previous_names":["hoytech/md-toc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hoytech/md-toc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoytech%2Fmd-toc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoytech%2Fmd-toc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoytech%2Fmd-toc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoytech%2Fmd-toc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoytech","download_url":"https://codeload.github.com/hoytech/md-toc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoytech%2Fmd-toc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28816571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T07:49:01.728Z","updated_at":"2026-01-27T17:02:39.792Z","avatar_url":"https://github.com/hoytech.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# md-toc: Markdown Table Of Contents Generator\n\nThis simple script will scan a markdown file for headers and build a table-of-contents, like this:\n\n\u003c!-- TOC FOLLOWS --\u003e\n\u003c!-- START OF TOC --\u003e\n\u003c!-- DO NOT EDIT! Auto-generated by md-toc: https://github.com/hoytech/md-toc --\u003e\n\n* [Usage](#usage)\n    * [Setup](#setup)\n        * [Custom Nesting](#custom-nesting)\n    * [Updating](#updating)\n    * [Warnings](#warnings)\n* [Author](#author)\n\n\u003c!-- END OF TOC --\u003e\n\n## Usage\n\n### Setup\n\nBefore running the first time, put the following on a line by itself (with no leading whitespace):\n\n    \u003c!-- TOC FOLLOWS --\u003e\n\nThen run the script like this:\n\n    md-toc README.md\n\n`md-toc` will collect all `h1`, `h2`... tags (in markdown: `#`, `##`, ...), build nested lists of these, and insert them after the `TOC FOLLOWS` line. The header levels used can be [customised](#custom-nesting).\n\n#### Custom Nesting\n\nBy default, it will only include levels 2 through 4, but you can customise this with another argument:\n\n    md-toc README.md 1-5\n\n### Updating\n\nEach time you run `md-toc`, it will again search for the `TOC FOLLOWS` line, and delete everything between the `START OF TOC` and `END OF TOC` comment lines, re-render the new ToC, and insert it.\n\n### Warnings\n\n`md-toc` will warn you in the following cases:\n\n* Duplicate headers\n* Broken internal links (ie `[click here](#no-such-header)`)\n\n## Author\n\nDoug Hoyte, 2023\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoytech%2Fmd-toc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoytech%2Fmd-toc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoytech%2Fmd-toc/lists"}