1 | [![npm](https://nodei.co/npm/mdast-squeeze-paragraphs.png)](https://npmjs.com/package/mdast-squeeze-paragraphs)
|
2 |
|
3 | # mdast-squeeze-paragraphs
|
4 |
|
5 | [![Build Status](https://travis-ci.org/eush77/mdast-squeeze-paragraphs.svg)](https://travis-ci.org/eush77/mdast-squeeze-paragraphs)
|
6 | [![Dependency Status][david-badge]][david]
|
7 |
|
8 | Remove empty paragraphs left from other [mdast](http://mdast.js.org) transformations.
|
9 |
|
10 | [david]: https://david-dm.org/eush77/mdast-squeeze-paragraphs
|
11 | [david-badge]: https://david-dm.org/eush77/mdast-squeeze-paragraphs.png
|
12 |
|
13 | ## Example
|
14 |
|
15 | ```js
|
16 | > mdast.use(mdastStripBadges)
|
17 | .process('![](http://img.shields.io/)\n\ntext')
|
18 | '\n\ntext\n'
|
19 | > mdast.use(mdastStripBadges)
|
20 | .use(mdastSqueezeParagraphs)
|
21 | .process('![](http://img.shields.io/)\n\ntext')
|
22 | 'text\n'
|
23 | ```
|
24 |
|
25 | ## API
|
26 |
|
27 | #### `mdast.use(mdastSqueezeParagraphs)`
|
28 |
|
29 | Remove empty paragraphs from the AST.
|
30 |
|
31 | ## Install
|
32 |
|
33 | ```
|
34 | npm install mdast-squeeze-paragraphs
|
35 | ```
|
36 |
|
37 | ## License
|
38 |
|
39 | MIT
|