remark plugin to update legacy badge markers to the modern zone convention
$ npm install @form8ion/remark-update-legacy-badge-markers --save-prod
import fs from 'node:fs';
import {remark} from 'remark';
import updateLegacyBadgeMarkers from '@form8ion/remark-update-legacy-badge-markers';
remark()
.use(updateLegacyBadgeMarkers)
.process(
`# project-name
<!-- status badges -->
<!-- consumer badges -->
<!-- contribution badges -->
`,
(err, file) => {
fs.writeFileSync(`${process.cwd()}/README.md`, `${file}`);
}
);
$ nvm install
$ npm install
$ npm test