{"id":25353795,"url":"https://github.com/bfoersterling/mdtoc","last_synced_at":"2026-02-22T12:19:33.849Z","repository":{"id":272962091,"uuid":"918318764","full_name":"bfoersterling/mdtoc","owner":"bfoersterling","description":"Markdown table of content generator for the CLI.","archived":false,"fork":false,"pushed_at":"2025-02-08T16:31:12.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T16:33:01.212Z","etag":null,"topics":["cli","linux","markdown","parser","toc"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bfoersterling.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-01-17T17:25:38.000Z","updated_at":"2025-02-08T16:30:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"e1a4f2b4-f4f9-4961-9b98-5a1df777acb2","html_url":"https://github.com/bfoersterling/mdtoc","commit_stats":null,"previous_names":["bfoersterling/mdtoc"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfoersterling%2Fmdtoc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfoersterling%2Fmdtoc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfoersterling%2Fmdtoc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfoersterling%2Fmdtoc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bfoersterling","download_url":"https://codeload.github.com/bfoersterling/mdtoc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247958707,"owners_count":21024821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cli","linux","markdown","parser","toc"],"created_at":"2025-02-14T19:55:42.816Z","updated_at":"2026-02-22T12:19:33.840Z","avatar_url":"https://github.com/bfoersterling.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mdtoc\n\nCreate markdown table of contents.\\\nRead individual chapters with syntax highlighting.\\\nEdit chapters with your `$EDITOR`.\\\nMakes it easy to work with large Markdown files.\n\nFully Commonmark compliant.\n\n## installation\n\n#### arch user repository\n\nhttps://aur.archlinux.org/packages/mdtoc\n\n```\nyay -S mdtoc\n```\n\n#### download the latest release\n\n```\nmake install_latest_release\n```\n\nDependencies:\n- cmark\n- readline\n\n#### build from source\n\n```\nmake\nsudo make install\n```\n\n## usage\n\nWithout arguments `mdtoc` will print a table of content.\n\nThe most useful option is probably the interactive mode - `-i`.\n\nIn interactive mode you can type in the chapter numbering to print it.\\\nEditing chapters is possible with `e CHAPTER` (or without CHAPTER to view the \\\nmost recently printed chapter.\\\nOr you can print the table of content with `toc`.\n\n## architecture\n\nWritten in C23.\n\nMarkdown is parsed by the Commonmark reference implementation.\\\n(https://github.com/commonmark/cmark)\n\nHeadings are stored in a tree data structure.\n\nOut of tree headings will always be shown, as in Commonmark any document \\\nis a valid Markdown document and this enables the user to fix the structure \\\nof the document.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfoersterling%2Fmdtoc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbfoersterling%2Fmdtoc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfoersterling%2Fmdtoc/lists"}