Skip to content

Commit 10af7d1

Browse files
committed
Add more utilities
1 parent 954b9d1 commit 10af7d1

File tree

1 file changed

+24
-10
lines changed

1 file changed

+24
-10
lines changed

readme.md

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ This document describes version 2.0.0 of **HAST**. [Changelog »][changelog].
3939

4040
## List of Utilities
4141

42-
<!--lint disable list-item-spacing-->
43-
4442
<!--
4543
Utilities. The first two are special. The rest is sorted
4644
alphabetically based on content after `hast-util-`
@@ -51,33 +49,49 @@ alphabetically based on content after `hast-util-`
5149
* [`wooorm/hast-to-hyperscript`](https://github.com/wooorm/hast-to-hyperscript)
5250
— Convert a Node to React, Virtual DOM, Hyperscript, and more;
5351
* [`wooorm/hast-util-embedded`](https://github.com/wooorm/hast-util-embedded)
54-
— Check if a node is embedded content;
52+
— Check if `node` is embedded content;
53+
* [`wooorm/hast-util-from-string`](https://github.com/wooorm/rehype-minify/tree/master/packages/hast-util-from-string)
54+
— Set the plain-text value of a HAST node;
5555
* [`wooorm/hast-util-has-property`](https://github.com/wooorm/hast-util-has-property)
5656
— Check if a node has a property;
5757
* [`wooorm/hast-util-heading`](https://github.com/wooorm/hast-util-heading)
5858
— Check if a node is heading content;
5959
* [`wooorm/hast-util-interactive`](https://github.com/wooorm/hast-util-interactive)
6060
— Check if a node is interactive;
61+
* [`wooorm/hast-util-is-body-ok-link`](https://github.com/wooorm/rehype-minify/tree/master/packages/hast-util-is-body-ok-link)
62+
— Check if a `link` element is “Body OK”;
63+
* [`wooorm/hast-util-is-conditional-comment`](https://github.com/wooorm/rehype-minify/tree/master/packages/hast-util-is-conditional-comment)
64+
— Check if `node` is a conditional comment;
65+
* [`wooorm/hast-util-is-css-link`](https://github.com/wooorm/rehype-minify/tree/master/packages/hast-util-is-css-link)
66+
— Check if `node` is a CSS `link`;
67+
* [`wooorm/hast-util-is-css-style`](https://github.com/wooorm/rehype-minify/tree/master/packages/hast-util-is-css-style)
68+
— Check if `node` is a CSS `style`;
6169
* [`wooorm/hast-util-is-element`](https://github.com/wooorm/hast-util-is-element)
62-
— Check if a node is a (certain) element;
70+
— Check if `node` is a (certain) element;
71+
* [`wooorm/hast-util-is-event-handler`](https://github.com/wooorm/rehype-minify/tree/master/packages/hast-util-is-event-handler)
72+
— Check if `property` is an event handler;
73+
* [`wooorm/hast-util-is-javascript`](https://github.com/wooorm/rehype-minify/tree/master/packages/hast-util-is-javascript)
74+
— Check if `node` is a JavaScript `script`;
6375
* [`wooorm/hast-util-labelable`](https://github.com/wooorm/hast-util-labelable)
64-
— Check if a node is labelable;
76+
— Check if `node` is labelable;
6577
* [`wooorm/hast-util-menu-state`](https://github.com/wooorm/hast-util-menu-state)
6678
— Check the state of a menu element;
6779
* [`wooorm/hast-util-parse-selector`](https://github.com/wooorm/hast-util-parse-selector)
68-
— Create a node from a simple CSS selector;
80+
— Create an element from a simple CSS selector;
6981
* [`wooorm/hast-util-sanitize`](https://github.com/wooorm/hast-util-sanitize)
7082
— Sanitise nodes;
7183
* [`wooorm/hast-util-script-supporting`](https://github.com/wooorm/hast-util-script-supporting)
72-
— Check if a node is script-supporting content;
84+
— Check if `node` is script-supporting content;
7385
* [`wooorm/hast-util-sectioning`](https://github.com/wooorm/hast-util-sectioning)
74-
— Check if a node is sectioning content;
86+
— Check if `node` is sectioning content;
7587
* [`wooorm/hast-util-to-html`](https://github.com/wooorm/hast-util-to-html)
7688
— Stringify nodes to HTML;
89+
* [`wooorm/hast-util-to-string`](https://github.com/wooorm/rehype-minify/tree/master/packages/hast-util-to-string)
90+
— Get the plain-text value of a HAST node;
7791
* [`wooorm/hast-util-transparent`](https://github.com/wooorm/hast-util-transparent)
78-
— Check if a node is transparent content;
92+
— Check if `node` is transparent content;
7993
* [`wooorm/hast-util-whitespace`](https://github.com/wooorm/hast-util-whitespace)
80-
— Check if a node is inter-element whitespace;
94+
— Check if `node` is inter-element whitespace;
8195

8296
See the [List of Unist Utilities][unist-utility] for projects which
8397
work with **HAST** nodes too.

0 commit comments

Comments
 (0)