A remark plugin to lint or fix a Markdown changelog according to the Common Changelog specification. Current stable version 2.3.2 (npm, 2023). ESM-only, requires Node >=12.20. It enforces changelog structure, heading format, version links, dates, release ordering, and can auto-fill empty releases with commit logs. Unlike generic Markdown linting, it specializes in changelog conventions and integrates with git history.
npm install remark-common-changelogNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Lint and fix a CHANGELOG.md file using remark-common-changelog plugin with to-vfile for I/O.
Update Node to >=12.20 and use import instead of require.
Ensure the first line is '# Changelog' or let fix mode add/update it.
Use version format '1.0.0' not 'v1.0.0' in headings.
Use '[1.0.0]: <url>' reference style, not inline links.
Manually review and edit the filled content.
Switch to ES modules: use import syntax or rename file to .mjs.
Run 'npm install remark' or include it in your dependencies.
Run 'npm install to-vfile' if you are using it in your code.
Ensure CHANGELOG.md exists and starts with '# Changelog'.