remark plugin to remove empty (or white-space only) paragraphs.
Install
npm:
npm install remark-squeeze-paragraphs
Use
var remark = require('remark')
var stripBadges = require('remark-strip-badges')
var squeezeParagraphs = require('remark-squeeze-paragraphs')
remark()
.use(stripBadges)
.processSync('![](https://img.shields.io/)\n\ntext')
.toString()
remark()
.use(stripBadges)
.use(squeezeParagraphs)
.processSync('![](https://img.shields.io/)\n\ntext')
.toString()
API
Remove empty (or white-space only) paragraphs.
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, organisation, or community you agree to
abide by its terms.
License
MIT © Eugene Sharygin