Skip to content

inkdropapp/remark-squeeze-links

Repository files navigation

remark-squeeze-links

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

Install

npm:

npm install remark-squeeze-links

Use

import { remark } from 'remark'
import { squeezeLinks } from '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

About

remark plugin to remove empty (or white-space only) links

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published