1
- # mdast-squeeze-paragraphs [ ![ Build ] [ build-badge ]] [ build ] [ ![ Coverage ] [ coverage-badge ]] [ coverage ] [ ![ Downloads ] [ downloads-badge ]] [ downloads ] [ ![ Chat ] [ chat-badge ]] [ chat ]
1
+ # mdast-squeeze-paragraphs
2
2
3
- Remove empty paragraphs from [ ** mdast** ] [ mdast ] syntax trees.
3
+ [ ![ Build] [ build-badge ]] [ build ]
4
+ [ ![ Coverage] [ coverage-badge ]] [ coverage ]
5
+ [ ![ Downloads] [ downloads-badge ]] [ downloads ]
6
+ [ ![ Size] [ size-badge ]] [ size ]
7
+ [ ![ Sponsors] [ sponsors-badge ]] [ collective ]
8
+ [ ![ Backers] [ backers-badge ]] [ collective ]
9
+ [ ![ Chat] [ chat-badge ]] [ chat ]
10
+
11
+ [ ** mdast** ] [ mdast ] utility to remove empty paragraphs from a tree.
4
12
5
13
Paragraphs are considered empty if they do not contain non-whitespace
6
14
characters.
7
15
8
- ## Installation
16
+ ## Install
9
17
10
18
[ npm] [ ] :
11
19
12
- ``` bash
20
+ ``` sh
13
21
npm install mdast-squeeze-paragraphs
14
22
```
15
23
@@ -43,7 +51,8 @@ Yields:
43
51
44
52
### ` squeezeParagraphs(tree) `
45
53
46
- Modifies tree in-place. Returns ` tree ` .
54
+ Modifies [ tree] [ ] in-place.
55
+ Returns ` tree ` .
47
56
48
57
## Related
49
58
@@ -52,11 +61,13 @@ Modifies tree in-place. Returns `tree`.
52
61
53
62
## Contribute
54
63
55
- See [ ` contributing.md ` in ` syntax-tree/mdast ` ] [ contributing ] for ways to get
64
+ See [ ` contributing.md ` in ` syntax-tree/.github ` ] [ contributing ] for ways to get
56
65
started.
66
+ See [ ` support.md ` ] [ support ] for ways to get help.
57
67
58
- This organisation has a [ Code of Conduct] [ coc ] . By interacting with this
59
- repository, organisation, or community you agree to abide by its terms.
68
+ This project has a [ Code of Conduct] [ coc ] .
69
+ By interacting with this repository, organisation, or community you agree to
70
+ abide by its terms.
60
71
61
72
## License
62
73
@@ -76,17 +87,31 @@ repository, organisation, or community you agree to abide by its terms.
76
87
77
88
[ downloads ] : https://www.npmjs.com/package/mdast-squeeze-paragraphs
78
89
90
+ [ size-badge ] : https://img.shields.io/bundlephobia/minzip/mdast-squeeze-paragraphs.svg
91
+
92
+ [ size ] : https://bundlephobia.com/result?p=mdast-squeeze-paragraphs
93
+
94
+ [ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
95
+
96
+ [ backers-badge ] : https://opencollective.com/unified/backers/badge.svg
97
+
98
+ [ collective ] : https://opencollective.com/unified
99
+
79
100
[ chat-badge ] : https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg
80
101
81
- [ chat ] : https://spectrum.chat/unified/remark
102
+ [ chat ] : https://spectrum.chat/unified/syntax-tree
82
103
83
104
[ npm ] : https://docs.npmjs.com/cli/install
84
105
85
106
[ license ] : license
86
107
87
- [ contributing ] : https://github.com/syntax-tree/mdast/blob/master/contributing.md
108
+ [ contributing ] : https://github.com/syntax-tree/.github/blob/master/contributing.md
109
+
110
+ [ support ] : https://github.com/syntax-tree/.github/blob/master/support.md
111
+
112
+ [ coc ] : https://github.com/syntax-tree/.github/blob/master/code-of-conduct.md
88
113
89
- [ coc ] : https://github.com/syntax-tree/mdast/blob/master/code-of-conduct.md
114
+ [ tree ] : https://github.com/syntax-tree/unist#tree
90
115
91
116
[ mdast ] : https://github.com/syntax-tree/mdast
92
117
0 commit comments