- Preserve spacing after TOC on overwrite
- Properly handle parenthesis in anchor links
- Version (
-version
) CLI flag - Config struct to store insert settings
- Flags/configuration to enable optional TOC headings (
-with-toc-heading
,-toc-heading
)
Insert
function signature now accepts*Config
type
- Exclude headings with the
<!--mdtoc: ignore-->
comment
- Simplified
Insert
function signature - Updated TOC begin/end comments with proper formatting
- Ignore lines matching heading regex when inside code blocks
- Github action workflow for
go build
,go test
commands
- Removed unneccesary constant exports
- Modified exported function names for clarity
- Updated go library usage docs
- Properly handle braces in anchor links
- Properly handle backticks, single, and double quotes in anchor links
- Optional
-out
flag to redirect modified content
- Improved usage message formatting
- Properly handle repeated heading text
- Initial release