Nerdiest Political Manifesto
Publish your own packages to the world's most popular software ecosystem with npm Pro.Get started »

remark-squeeze-paragraphs

3.0.4 • Public • Published

remark-squeeze-paragraphs

Build Coverage Downloads Size Sponsors Backers Chat

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()
// => "\n\ntext\n"
 
remark()
  .use(stripBadges)
  .use(squeezeParagraphs)
  .processSync('![](https://img.shields.io/)\n\ntext')
  .toString()
// => "text\n"

API

remark().use(squeezeParagraphs)

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

Install

npm i remark-squeeze-paragraphs

DownloadsWeekly Downloads

235,706

Version

3.0.4

License

MIT

Unpacked Size

6.07 kB

Total Files

4

Last publish

Collaborators

  • avatar
  • avatar