remark plugin to remove empty (or whitespace only) links.
npm:
npm install remark-squeeze-links
import { remark } from 'remark'
import { squeezeLinks } from 'remark-squeeze-links'
remark().use(squeezeLinks).processSync('[](#about)\ntext').toString()
// => "text\n"
Remove empty (or white-space only) links.
mdast-squeeze-links
— mdast utility that is in the core of this plugin
See contributing.md
in remarkjs/.github
for ways
to get started.
See support.md
for ways to get help.
This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.