@@ -57,7 +57,7 @@ That turns hast into HTML.
57
57
## Install
58
58
59
59
This package is [ ESM only] [ esm ] .
60
- In Node.js (version 16.0 +), install with [ npm] [ ] :
60
+ In Node.js (version 16+), install with [ npm] [ ] :
61
61
62
62
``` sh
63
63
npm install hast-util-from-html-isomorphic
@@ -66,14 +66,14 @@ npm install hast-util-from-html-isomorphic
66
66
In Deno with [ ` esm.sh ` ] [ esmsh ] :
67
67
68
68
``` js
69
- import {fromHtmlIsomorphic } from " https://esm.sh/hast-util-from-html-isomorphic@1"
69
+ import {fromHtmlIsomorphic } from ' https://esm.sh/hast-util-from-html-isomorphic@1'
70
70
```
71
71
72
72
In browsers with [ ` esm.sh ` ] [ esmsh ] :
73
73
74
74
``` html
75
75
<script type =" module" >
76
- import {fromHtmlIsomorphic } from " https://esm.sh/hast-util-from-html-isomorphic@1?bundle"
76
+ import {fromHtmlIsomorphic } from ' https://esm.sh/hast-util-from-html-isomorphic@1?bundle'
77
77
</script >
78
78
```
79
79
@@ -105,7 +105,8 @@ Yields (positional info and data omitted for brevity):
105
105
106
106
## API
107
107
108
- This package exports the identifier [ ` fromHtmlIsomorphic ` ] [ fromhtmlisomorphic ] .
108
+ This package exports the identifier
109
+ [ ` fromHtmlIsomorphic ` ] [ api-from-html-isomorphic ] .
109
110
There is no default export.
110
111
111
112
### ` fromHtmlIsomorphic(value[, options]) `
@@ -114,9 +115,9 @@ Turn serialized HTML into a hast tree.
114
115
115
116
###### Parameters
116
117
117
- * ` value ` ([ ` Compatible ` ] [ compatible ] )
118
+ * ` value ` (` string ` )
118
119
— serialized HTML to parse
119
- * ` options ` ([ ` Options ` ] [ options ] , optional)
120
+ * ` options ` ([ ` Options ` ] [ api- options] , optional)
120
121
— configuration
121
122
122
123
###### Returns
@@ -184,14 +185,17 @@ followed by browsers such as Chrome and Firefox.
184
185
## Types
185
186
186
187
This package is fully typed with [ TypeScript] [ ] .
187
- It exports the additional type [ ` Options ` ] [ options ] .
188
+ It exports the additional type [ ` Options ` ] [ api- options] .
188
189
189
190
## Compatibility
190
191
191
- Projects maintained by the unified collective are compatible with all maintained
192
+ Projects maintained by the unified collective are compatible with maintained
192
193
versions of Node.js.
193
- As of now, that is Node.js 16.0+.
194
- Our projects sometimes work with older versions, but this is not guaranteed.
194
+
195
+ When we cut a new major release, we drop support for unmaintained versions of
196
+ Node.
197
+ This means we try to keep the current release line,
198
+ ` hast-util-from-html-isomorphic@^1 ` , compatible with Node.js 16.
195
199
196
200
## Security
197
201
@@ -240,9 +244,9 @@ abide by its terms.
240
244
241
245
[ downloads ] : https://www.npmjs.com/package/hast-util-from-html-isomorphic
242
246
243
- [ size-badge ] : https://img.shields.io/bundlephobia/minzip/ hast-util-from-html-isomorphic.svg
247
+ [ size-badge ] : https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q= hast-util-from-html-isomorphic
244
248
245
- [ size ] : https://bundlephobia .com/result?p =hast-util-from-html-isomorphic
249
+ [ size ] : https://bundlejs .com/?q =hast-util-from-html-isomorphic
246
250
247
251
[ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
248
252
@@ -292,8 +296,6 @@ abide by its terms.
292
296
293
297
[ xast-util-from-xml ] : https://github.com/syntax-tree/xast-util-from-xml
294
298
295
- [ fromhtmlisomorphic ] : #fromhtmlisomorphicvalue-options
296
-
297
- [ options ] : #options
299
+ [ api-from-html-isomorphic ] : #fromhtmlisomorphicvalue-options
298
300
299
- [ compatible ] : https://github.com/vfile/vfile/blob/03efac7/lib/index.js#L16
301
+ [ api-options ] : #options
0 commit comments