Are there any ergonomic libraries for rewriting a markdown document?
I've got a changelog that follows the Keep a Changelog format and want to automate a couple boring operations:
Insert a new
## [v1.2.3] - 2020-02-03header immediately after
## [Unreleased]to indicate a set of additions/changes/fixes are now part of the
Add a new link definition for
v1.2.3so we can see the diff between it and the previous version (e.g.
Modify the link for
I could bodge this together with regex, but I'd prefer to use a more robust solution if possible.