remark-squeeze-links
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

remark-squeeze-links

remark plugin to remove empty (or whitespace only) links.

Install

npm:

npm install remark-squeeze-links

Use

var remark = require('remark')
var squeezeLinks = require('remark-squeeze-links')

remark().use(squeezeLinks).processSync('[](#about)\ntext').toString()
// => "text\n"

API

remark().use(squeezeLinks)

Remove empty (or white-space only) links.

Related

Contribute

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.

License

MIT © Takuya Matsuyama

Package Sidebar

Install

npm i remark-squeeze-links

Weekly Downloads

72

Version

1.0.2

License

MIT

Unpacked Size

5.88 kB

Total Files

9

Last publish

Collaborators

  • craftzdog