Skip to content

feat: Add --insert flag to enable in-place TOC insertion#57

Open
ryo246912 wants to merge 2 commits intoekalinin:masterfrom
ryo246912:feature/insert
Open

feat: Add --insert flag to enable in-place TOC insertion#57
ryo246912 wants to merge 2 commits intoekalinin:masterfrom
ryo246912:feature/insert

Conversation

@ryo246912
Copy link

@ryo246912 ryo246912 commented Feb 7, 2026

Fix: #26

This PR implements the --insert flag feature that allows users to insert generated TOC directly into markdown files, similar to the bash version of github-markdown-toc and doctoc.

Supported Commands

# Insert TOC into a file (creates backup by default)
gh-md-toc --insert README.md

# Insert TOC without creating backup
gh-md-toc --insert --no-backup README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Add --insert option (like in shell project)

1 participant