@@ -64,7 +64,7 @@ The plugin [`rehype-raw`][rehype-raw] wraps this utility at a higher-level
64
64
## Install
65
65
66
66
This package is [ ESM only] [ esm ] .
67
- In Node.js (version 14.14+ and 16.0 +), install with [ npm] [ ] :
67
+ In Node.js (version 16 +), install with [ npm] [ ] :
68
68
69
69
``` sh
70
70
npm install hast-util-raw
@@ -117,7 +117,7 @@ Yields:
117
117
118
118
## API
119
119
120
- This package exports the identifier [ ` raw ` ] [ raw ] .
120
+ This package exports the identifier [ ` raw ` ] [ api- raw] .
121
121
There is no default export.
122
122
123
123
### ` raw(tree[, options]) `
@@ -129,7 +129,7 @@ nodes into actual nodes.
129
129
130
130
* ` tree ` ([ ` Node ` ] [ node ] )
131
131
— original hast tree to transform
132
- * ` options ` ([ ` Options ` ] [ options ] , optional)
132
+ * ` options ` ([ ` Options ` ] [ api- options] , optional)
133
133
— configuration
134
134
135
135
###### Returns
@@ -152,17 +152,20 @@ Configuration (TypeScript type).
152
152
## Types
153
153
154
154
This package is fully typed with [ TypeScript] [ ] .
155
- It exports the additional type [ ` Options ` ] [ options ] .
155
+ It exports the additional type [ ` Options ` ] [ api- options] .
156
156
157
157
The ` Raw ` node type is registered by and exposed from
158
158
[ ` mdast-util-to-hast ` ] [ mdast-util-to-hast ] .
159
159
160
160
## Compatibility
161
161
162
- Projects maintained by the unified collective are compatible with all maintained
162
+ Projects maintained by the unified collective are compatible with maintained
163
163
versions of Node.js.
164
- As of now, that is Node.js 14.14+ and 16.0+.
165
- Our projects sometimes work with older versions, but this is not guaranteed.
164
+
165
+ When we cut a new major release, we drop support for unmaintained versions of
166
+ Node.
167
+ This means we try to keep the current release line, ` hast-util-raw@^8 ` ,
168
+ compatible with Node.js 12.
166
169
167
170
## Security
168
171
@@ -219,9 +222,9 @@ abide by its terms.
219
222
220
223
[ downloads ] : https://www.npmjs.com/package/hast-util-raw
221
224
222
- [ size-badge ] : https://img.shields.io/bundlephobia/minzip/ hast-util-raw.svg
225
+ [ size-badge ] : https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q= hast-util-raw
223
226
224
- [ size ] : https://bundlephobia .com/result?p =hast-util-raw
227
+ [ size ] : https://bundlejs .com/?q =hast-util-raw
225
228
226
229
[ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
227
230
@@ -269,6 +272,6 @@ abide by its terms.
269
272
270
273
[ parse5 ] : https://github.com/inikulin/parse5
271
274
272
- [ raw ] : #rawtree-options
275
+ [ api- raw] : #rawtree-options
273
276
274
- [ options ] : #options
277
+ [ api- options] : #options
0 commit comments