1
- # hast-util-sectioning [ ![ Build ] [ build-badge ]] [ build ] [ ![ Coverage ] [ coverage-badge ]] [ coverage ] [ ![ Downloads ] [ downloads-badge ]] [ downloads ] [ ![ Chat ] [ chat-badge ]] [ chat ]
1
+ # hast-util-sectioning
2
2
3
- Check if a [ node] [ ] is a [ ** sectioning** ] [ spec ] [ element] [ ] .
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 ]
4
10
5
- ## Installation
11
+ [ ** hast** ] [ hast ] utility to check if an [ * element* ] [ element ] is
12
+ [ * sectioning* ] [ spec ] .
13
+
14
+ ## Install
6
15
7
16
[ npm] [ ] :
8
17
9
- ``` bash
18
+ ``` sh
10
19
npm install hast-util-sectioning
11
20
```
12
21
13
22
## Usage
14
23
15
- ``` javascript
24
+ ``` js
16
25
var sectioning = require (' hast-util-sectioning' )
17
26
18
27
sectioning ({
@@ -39,15 +48,17 @@ sectioning({
39
48
40
49
### ` sectioning(node) `
41
50
42
- Check if the given value is a [ ** sectioning** ] [ spec ] [ element] [ ] .
51
+ Check if the given value is a [ * sectioning* ] [ spec ] [ * element* ] [ element ] .
43
52
44
53
## Contribute
45
54
46
- See [ ` contribute .md` in ` syntax-tree/hast ` ] [ contribute ] for ways to get
55
+ See [ ` contributing .md` in ` syntax-tree/.github ` ] [ contributing ] for ways to get
47
56
started.
57
+ See [ ` support.md ` ] [ support ] for ways to get help.
48
58
49
- This organisation has a [ Code of Conduct] [ coc ] . By interacting with this
50
- repository, organisation, or community you agree to abide by its terms.
59
+ This project has a [ Code of Conduct] [ coc ] .
60
+ By interacting with this repository, organisation, or community you agree to
61
+ abide by its terms.
51
62
52
63
## License
53
64
@@ -67,22 +78,34 @@ repository, organisation, or community you agree to abide by its terms.
67
78
68
79
[ downloads ] : https://www.npmjs.com/package/hast-util-sectioning
69
80
81
+ [ size-badge ] : https://img.shields.io/bundlephobia/minzip/hast-util-sectioning.svg
82
+
83
+ [ size ] : https://bundlephobia.com/result?p=hast-util-sectioning
84
+
85
+ [ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
86
+
87
+ [ backers-badge ] : https://opencollective.com/unified/backers/badge.svg
88
+
89
+ [ collective ] : https://opencollective.com/unified
90
+
70
91
[ chat-badge ] : https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg
71
92
72
- [ chat ] : https://spectrum.chat/unified/rehype
93
+ [ chat ] : https://spectrum.chat/unified/syntax-tree
73
94
74
95
[ npm ] : https://docs.npmjs.com/cli/install
75
96
76
97
[ license ] : license
77
98
78
99
[ author ] : https://wooorm.com
79
100
80
- [ node ] : https://github.com/syntax-tree/unist#node
101
+ [ contributing ] : https://github.com/syntax-tree/.github/blob/master/contributing.md
81
102
82
- [ element ] : https://github.com/syntax-tree/unist#element
103
+ [ support ] : https://github.com/syntax-tree/.github/blob/master/support.md
83
104
84
- [ spec ] : https://html.spec.whatwg.org/#sectioning-content
105
+ [ coc ] : https://github.com/syntax-tree/.github/blob/master/code-of-conduct.md
85
106
86
- [ contribute ] : https://github.com/syntax-tree/hast/blob/master/contributing.md
107
+ [ hast ] : https://github.com/syntax-tree/hast
87
108
88
- [ coc ] : https://github.com/syntax-tree/hast/blob/master/code-of-conduct.md
109
+ [ element ] : https://github.com/syntax-tree/hast#element
110
+
111
+ [ spec ] : https://html.spec.whatwg.org/#sectioning-content
0 commit comments