Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mdast-squeeze-paragraphs

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdast-squeeze-paragraphs - npm Package Compare versions

Comparing version 3.0.4 to 3.0.5

10

package.json
{
"name": "mdast-squeeze-paragraphs",
"version": "3.0.4",
"version": "3.0.5",
"description": "Remove empty paragraphs from mdast tree",

@@ -33,9 +33,9 @@ "license": "MIT",

"devDependencies": {
"nyc": "^13.0.0",
"prettier": "^1.14.2",
"nyc": "^14.0.0",
"prettier": "^1.0.0",
"remark-cli": "^6.0.0",
"remark-preset-wooorm": "^4.0.0",
"remark-preset-wooorm": "^5.0.0",
"tape": "^4.0.0",
"unist-builder": "^1.0.0",
"xo": "^0.23.0"
"xo": "^0.24.0"
},

@@ -42,0 +42,0 @@ "scripts": {

@@ -1,13 +0,21 @@

# mdast-squeeze-paragraphs [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Chat][chat-badge]][chat]
# mdast-squeeze-paragraphs
Remove empty paragraphs from [**mdast**][mdast] syntax trees.
[![Build][build-badge]][build]
[![Coverage][coverage-badge]][coverage]
[![Downloads][downloads-badge]][downloads]
[![Size][size-badge]][size]
[![Sponsors][sponsors-badge]][collective]
[![Backers][backers-badge]][collective]
[![Chat][chat-badge]][chat]
[**mdast**][mdast] utility to remove empty paragraphs from a tree.
Paragraphs are considered empty if they do not contain non-whitespace
characters.
## Installation
## Install
[npm][]:
```bash
```sh
npm install mdast-squeeze-paragraphs

@@ -46,3 +54,4 @@ ```

Modifies tree in-place. Returns `tree`.
Modifies [tree][] in-place.
Returns `tree`.

@@ -56,7 +65,9 @@ ## Related

See [`contributing.md` in `syntax-tree/mdast`][contributing] for ways to get
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
started.
See [`support.md`][support] for ways to get help.
This organisation has a [Code of Conduct][coc]. By interacting with this
repository, organisation, or community you agree to abide by its terms.
This project has a [Code of Conduct][coc].
By interacting with this repository, organisation, or community you agree to
abide by its terms.

@@ -81,5 +92,15 @@ ## License

[size-badge]: https://img.shields.io/bundlephobia/minzip/mdast-squeeze-paragraphs.svg
[size]: https://bundlephobia.com/result?p=mdast-squeeze-paragraphs
[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg
[backers-badge]: https://opencollective.com/unified/backers/badge.svg
[collective]: https://opencollective.com/unified
[chat-badge]: https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg
[chat]: https://spectrum.chat/unified/remark
[chat]: https://spectrum.chat/unified/syntax-tree

@@ -90,6 +111,10 @@ [npm]: https://docs.npmjs.com/cli/install

[contributing]: https://github.com/syntax-tree/mdast/blob/master/contributing.md
[contributing]: https://github.com/syntax-tree/.github/blob/master/contributing.md
[coc]: https://github.com/syntax-tree/mdast/blob/master/code-of-conduct.md
[support]: https://github.com/syntax-tree/.github/blob/master/support.md
[coc]: https://github.com/syntax-tree/.github/blob/master/code-of-conduct.md
[tree]: https://github.com/syntax-tree/unist#tree
[mdast]: https://github.com/syntax-tree/mdast

@@ -96,0 +121,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc