Socket
Socket
Sign inDemoInstall

remark-squeeze-paragraphs

Package Overview
Dependencies
3
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    remark-squeeze-paragraphs

Remark plugin for removing empty paragraphs


Version published
Maintainers
1
Install size
32.6 kB
Created

Readme

Source

npm

remark-squeeze-paragraphs

Build Status Dependency Status

Remark plugin for removing empty paragraphs.

Paragraph is considered empty if it is composed of whitespace characters only.

Example

var squeezeParagraphs = require('remark-squeeze-paragraphs');

remark.use(stripBadges)
      .process('![](http://img.shields.io/)\n\ntext')
//=> "\n\ntext\n"

remark.use(stripBadges)
      .use(squeezeParagraphs)
      .process('![](http://img.shields.io/)\n\ntext')
//=> "text\n"

API

remark.use(squeezeParagraphs)

Modifies AST in-place.

CLI

remark -u remark-squeeze-paragraphs

Install

npm install remark-squeeze-paragraphs

License

MIT

Keywords

FAQs

Last updated on 04 Jan 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc