remark plugin to remove empty (or whitespace only) links
npm install remark-squeeze-links[remark][remark] plugin to remove empty (or whitespace only) links.
[npm][]:
``sh`
npm install remark-squeeze-links
`js
var remark = require('remark')
var squeezeLinks = require('remark-squeeze-links')
remark().use(squeezeLinks).processSync('[](#about)\ntext').toString()
// => "text\n"
`
Remove empty (or white-space only) links.
- [mdast-squeeze-links][mdast-squeeze-links]
— [mdast][mdast] utility that is in the core of this plugin
See [contributing.md][contributing] in [remarkjs/.github][health] for wayssupport.md`][support] for ways to get help.
to get started.
See [
This project has a [code of conduct][coc].
By interacting with this repository, organization, or community you agree to
abide by its terms.
[MIT][license] © [Takuya Matsuyama][author]
[npm]: https://docs.npmjs.com/cli/install
[health]: https://github.com/remarkjs/.github
[contributing]: https://github.com/remarkjs/.github/blob/HEAD/contributing.md
[support]: https://github.com/remarkjs/.github/blob/HEAD/support.md
[coc]: https://github.com/remarkjs/.github/blob/HEAD/code-of-conduct.md
[license]: LICENSE
[author]: https://www.craftz.dog/
[remark]: https://github.com/remarkjs/remark
[mdast]: https://github.com/syntax-tree/mdast
[mdast-squeeze-links]: https://github.com/syntax-tree/mdast-squeeze-links
[hast]: https://github.com/syntax-tree/hast