Skip to content

Commit fa18749

Browse files
committed
Add reference to hast-util-from-html
1 parent b1c65cf commit fa18749

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Diff for: readme.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ This utility has many options to configure how the HTML is serialized.
4242
These options help when building tools that make output pretty (e.g.,
4343
formatters) or ugly (e.g., minifiers).
4444

45-
The utility [`hast-util-from-parse5`][hast-util-from-parse5] combined with
46-
[`parse5`][parse5] does the inverse of this utility.
45+
The utility [`hast-util-from-html`][hast-util-from-html] does the inverse of
46+
this utility.
4747
It turns HTML into hast.
4848

4949
The rehype plugin [`rehype-stringify`][rehype-stringify] wraps this utility to
@@ -52,7 +52,7 @@ also serialize HTML at a higher-level (easier) abstraction.
5252
## Install
5353

5454
This package is [ESM only][esm].
55-
In Node.js (version 12.20+, 14.14+, or 16.0+), install with [npm][]:
55+
In Node.js (version 12.20+, 14.14+, 16.0+, or 18.0+), install with [npm][]:
5656

5757
```sh
5858
npm install hast-util-to-html
@@ -373,9 +373,7 @@ abide by its terms.
373373

374374
[hast-util-sanitize]: https://github.com/syntax-tree/hast-util-sanitize
375375

376-
[hast-util-from-parse5]: https://github.com/syntax-tree/hast-util-from-parse5
377-
378-
[parse5]: https://github.com/inikulin/parse5
376+
[hast-util-from-html]: https://github.com/syntax-tree/hast-util-from-html
379377

380378
[rehype-stringify]: https://github.com/rehypejs/rehype/tree/main/packages/rehype-stringify#readme
381379

0 commit comments

Comments
 (0)