@@ -69,13 +69,14 @@ heading({
69
69
heading ({
70
70
type: ' element' ,
71
71
tagName: ' h1' ,
72
+ properties: {},
72
73
children: [{type: ' text' , value: ' Delta' }]
73
74
}) // => true
74
75
```
75
76
76
77
## API
77
78
78
- This package exports the identifier [ ` heading ` ] [ heading ] .
79
+ This package exports the identifier [ ` heading ` ] [ api- heading] .
79
80
There is no default export.
80
81
81
82
### ` heading(value) `
@@ -101,10 +102,13 @@ It exports no additional types.
101
102
102
103
## Compatibility
103
104
104
- Projects maintained by the unified collective are compatible with all maintained
105
+ Projects maintained by the unified collective are compatible with maintained
105
106
versions of Node.js.
106
- As of now, that is Node.js 12.20+, 14.14+, 16.0+, and 18.0+.
107
- Our projects sometimes work with older versions, but this is not guaranteed.
107
+
108
+ When we cut a new major release, we drop support for unmaintained versions of
109
+ Node.
110
+ This means we try to keep the current release line, ` hast-util-heading@^2 ` ,
111
+ compatible with Node.js 12.
108
112
109
113
## Security
110
114
@@ -176,9 +180,9 @@ abide by its terms.
176
180
177
181
[ downloads ] : https://www.npmjs.com/package/hast-util-heading
178
182
179
- [ size-badge ] : https://img.shields.io/bundlephobia/minzip/ hast-util-heading.svg
183
+ [ size-badge ] : https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q= hast-util-heading
180
184
181
- [ size ] : https://bundlephobia .com/result?p =hast-util-heading
185
+ [ size ] : https://bundlejs .com/?q =hast-util-heading
182
186
183
187
[ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
184
188
@@ -218,4 +222,4 @@ abide by its terms.
218
222
219
223
[ xss ] : https://en.wikipedia.org/wiki/Cross-site_scripting
220
224
221
- [ heading ] : #headingvalue
225
+ [ api- heading] : #headingvalue
0 commit comments