@@ -12,12 +12,12 @@ re-created.
12
12
13
13
The reason for introducing a new “virtual” DOM is primarily:
14
14
15
- * The DOM is very heavy to implement outside of the browser;
16
- a lean, stripped down virtual DOM can be used everywhere;
17
- * Most virtual DOMs do not focus on ease of use in transformations;
15
+ * The DOM is very heavy to implement outside of the browser,
16
+ a lean and stripped down virtual DOM can be used everywhere
17
+ * Most virtual DOMs do not focus on ease of use in transformations
18
18
* Other virtual DOMs cannot represent the syntax of HTML in its
19
- entirety, think comments, document types, and character data;
20
- * Neither HTML nor virtual DOMs focus on positional information.
19
+ entirety, think comments, document types, and character data
20
+ * Neither HTML nor virtual DOMs focus on positional information
21
21
22
22
** HAST** is a subset of [ Unist] [ ] , and implemented by [ rehype] [ ] .
23
23
@@ -43,111 +43,111 @@ alphabetically based on content after `hast-util-`
43
43
-->
44
44
45
45
* [ ` hastscript ` ] ( https://github.com/syntax-tree/hastscript )
46
- — Hyperscript compatible DSL for creating nodes;
46
+ — Hyperscript compatible DSL for creating nodes
47
47
* [ ` hast-to-hyperscript ` ] ( https://github.com/syntax-tree/hast-to-hyperscript )
48
- — Convert a Node to React, Virtual DOM, Hyperscript, and more;
48
+ — Convert a Node to React, Virtual DOM, Hyperscript, and more
49
49
* [ ` hast-util-assert ` ] ( https://github.com/syntax-tree/hast-util-assert )
50
- — Assert HAST nodes;
50
+ — Assert HAST nodes
51
51
* [ ` hast-util-embedded ` ] ( https://github.com/syntax-tree/hast-util-embedded )
52
- — Check if ` node ` is embedded content;
52
+ — Check if ` node ` is embedded content
53
53
* [ ` hast-util-find-and-replace ` ] ( https://github.com/syntax-tree/hast-util-find-and-replace )
54
- — Find and replace text;
54
+ — Find and replace text
55
55
* [ ` hast-util-from-parse5 ` ] ( https://github.com/syntax-tree/hast-util-to-parse5 )
56
- — Transform Parse5’s AST to HAST;
56
+ — Transform Parse5’s AST to HAST
57
57
* [ ` hast-util-from-string ` ] ( https://github.com/wooorm/rehype-minify/tree/master/packages/hast-util-from-string )
58
- — Set the plain-text value of a node;
58
+ — Set the plain-text value of a node
59
59
* [ ` hast-util-has-property ` ] ( https://github.com/syntax-tree/hast-util-has-property )
60
- — Check if a node has a property;
60
+ — Check if a node has a property
61
61
* [ ` hast-util-heading ` ] ( https://github.com/syntax-tree/hast-util-heading )
62
- — Check if a node is heading content;
62
+ — Check if a node is heading content
63
63
* [ ` hast-util-interactive ` ] ( https://github.com/syntax-tree/hast-util-interactive )
64
- — Check if a node is interactive;
64
+ — Check if a node is interactive
65
65
* [ ` hast-util-is-body-ok-link ` ] ( https://github.com/wooorm/rehype-minify/tree/master/packages/hast-util-is-body-ok-link )
66
- — Check if a ` link ` element is “Body OK”;
66
+ — Check if a ` link ` element is “Body OK”
67
67
* [ ` hast-util-is-conditional-comment ` ] ( https://github.com/wooorm/rehype-minify/tree/master/packages/hast-util-is-conditional-comment )
68
- — Check if ` node ` is a conditional comment;
68
+ — Check if ` node ` is a conditional comment
69
69
* [ ` hast-util-is-css-link ` ] ( https://github.com/wooorm/rehype-minify/tree/master/packages/hast-util-is-css-link )
70
- — Check if ` node ` is a CSS ` link ` ;
70
+ — Check if ` node ` is a CSS ` link `
71
71
* [ ` hast-util-is-css-style ` ] ( https://github.com/wooorm/rehype-minify/tree/master/packages/hast-util-is-css-style )
72
- — Check if ` node ` is a CSS ` style ` ;
72
+ — Check if ` node ` is a CSS ` style `
73
73
* [ ` hast-util-is-element ` ] ( https://github.com/syntax-tree/hast-util-is-element )
74
- — Check if ` node ` is a (certain) element;
74
+ — Check if ` node ` is a (certain) element
75
75
* [ ` hast-util-is-event-handler ` ] ( https://github.com/wooorm/rehype-minify/tree/master/packages/hast-util-is-event-handler )
76
- — Check if ` property ` is an event handler;
76
+ — Check if ` property ` is an event handler
77
77
* [ ` hast-util-is-javascript ` ] ( https://github.com/wooorm/rehype-minify/tree/master/packages/hast-util-is-javascript )
78
- — Check if ` node ` is a JavaScript ` script ` ;
78
+ — Check if ` node ` is a JavaScript ` script `
79
79
* [ ` hast-util-labelable ` ] ( https://github.com/syntax-tree/hast-util-labelable )
80
- — Check if ` node ` is labelable;
80
+ — Check if ` node ` is labelable
81
81
* [ ` hast-util-menu-state ` ] ( https://github.com/syntax-tree/hast-util-menu-state )
82
- — Check the state of a menu element;
82
+ — Check the state of a menu element
83
83
* [ ` hast-util-parse-selector ` ] ( https://github.com/syntax-tree/hast-util-parse-selector )
84
- — Create an element from a simple CSS selector;
84
+ — Create an element from a simple CSS selector
85
85
* [ ` hast-util-phrasing ` ] ( https://github.com/syntax-tree/hast-util-phrasing )
86
- — Check if a node is phrasing content;
86
+ — Check if a node is phrasing content
87
87
* [ ` hast-util-raw ` ] ( https://github.com/syntax-tree/hast-util-raw )
88
- — Reparse a HAST tree;
88
+ — Reparse a HAST tree
89
89
* [ ` hast-util-sanitize ` ] ( https://github.com/syntax-tree/hast-util-sanitize )
90
- — Sanitise nodes;
90
+ — Sanitise nodes
91
91
* [ ` hast-util-select ` ] ( https://github.com/syntax-tree/hast-util-select )
92
- — ` querySelector ` , ` querySelectorAll ` , and ` matches ` ;
92
+ — ` querySelector ` , ` querySelectorAll ` , and ` matches `
93
93
* [ ` hast-util-script-supporting ` ] ( https://github.com/syntax-tree/hast-util-script-supporting )
94
- — Check if ` node ` is script-supporting content;
94
+ — Check if ` node ` is script-supporting content
95
95
* [ ` hast-util-sectioning ` ] ( https://github.com/syntax-tree/hast-util-sectioning )
96
- — Check if ` node ` is sectioning content;
96
+ — Check if ` node ` is sectioning content
97
97
* [ ` hast-util-to-html ` ] ( https://github.com/syntax-tree/hast-util-to-html )
98
- — Stringify nodes to HTML;
98
+ — Stringify nodes to HTML
99
99
* [ ` hast-util-to-mdast ` ] ( https://github.com/syntax-tree/hast-util-to-mdast )
100
- — Transform HAST to MDAST;
100
+ — Transform HAST to MDAST
101
101
* [ ` hast-util-to-nlcst ` ] ( https://github.com/syntax-tree/hast-util-to-nlcst )
102
- — Transform HAST to NLCST;
102
+ — Transform HAST to NLCST
103
103
* [ ` hast-util-to-parse5 ` ] ( https://github.com/syntax-tree/hast-util-to-parse5 )
104
- — Transform HAST to Parse5’s AST;
104
+ — Transform HAST to Parse5’s AST
105
105
* [ ` hast-util-to-string ` ] ( https://github.com/syntax-tree/rehype-minify/tree/master/packages/hast-util-to-string )
106
- — Get the plain-text value of a node;
106
+ — Get the plain-text value of a node
107
107
* [ ` hast-util-transparent ` ] ( https://github.com/syntax-tree/hast-util-transparent )
108
- — Check if ` node ` is transparent content;
108
+ — Check if ` node ` is transparent content
109
109
* [ ` hast-util-whitespace ` ] ( https://github.com/syntax-tree/hast-util-whitespace )
110
- — Check if ` node ` is inter-element whitespace;
110
+ — Check if ` node ` is inter-element whitespace
111
111
112
112
See the [ List of Unist Utilities] [ unist-utility ] for projects which
113
113
work with ** HAST** nodes too.
114
114
115
115
## Related HTML Utilities
116
116
117
117
* [ ` a-rel ` ] ( https://github.com/wooorm/a-rel )
118
- — List of link types for ` rel ` on ` a ` / ` area ` ;
118
+ — List of link types for ` rel ` on ` a ` / ` area `
119
119
* [ ` aria-attributes ` ] ( https://github.com/wooorm/aria-attributes )
120
- — List of ARIA attributes;
120
+ — List of ARIA attributes
121
121
* [ ` collapse-white-space ` ] ( https://github.com/wooorm/collapse-white-space )
122
- — Replace multiple white-space characters with a single space;
122
+ — Replace multiple white-space characters with a single space
123
123
* [ ` comma-separated-tokens ` ] ( https://github.com/wooorm/comma-separated-tokens )
124
- — Parse/stringify comma-separated tokens;
124
+ — Parse/stringify comma-separated tokens
125
125
* [ ` html-tag-names ` ] ( https://github.com/wooorm/html-tag-names )
126
- — List of HTML tag-names;
126
+ — List of HTML tag-names
127
127
* [ ` html-dangerous-encodings ` ] ( https://github.com/wooorm/html-dangerous-encodings )
128
- — List of dangerous HTML character encoding labels;
128
+ — List of dangerous HTML character encoding labels
129
129
* [ ` html-encodings ` ] ( https://github.com/wooorm/html-encodings )
130
- — List of HTML character encoding labels;
130
+ — List of HTML character encoding labels
131
131
* [ ` html-element-attributes ` ] ( https://github.com/wooorm/html-element-attributes )
132
- — Map of HTML attributes;
132
+ — Map of HTML attributes
133
133
* [ ` html-void-elements ` ] ( https://github.com/wooorm/html-void-elements )
134
- — List of void HTML tag-names;
134
+ — List of void HTML tag-names
135
135
* [ ` link-rel ` ] ( https://github.com/wooorm/link-rel )
136
- — List of link types for ` rel ` on ` link ` ;
136
+ — List of link types for ` rel ` on ` link `
137
137
* [ ` mathml-tag-names ` ] ( https://github.com/wooorm/mathml-tag-names )
138
- — List of MathML tag-names;
138
+ — List of MathML tag-names
139
139
* [ ` meta-name ` ] ( https://github.com/wooorm/meta-name )
140
- — List of values for ` name ` on ` meta ` ;
140
+ — List of values for ` name ` on ` meta `
141
141
* [ ` property-information ` ] ( https://github.com/wooorm/property-information )
142
- — Information on HTML properties;
142
+ — Information on HTML properties
143
143
* [ ` space-separated-tokens ` ] ( https://github.com/wooorm/space-separated-tokens )
144
- — Parse/stringify space-separated tokens;
144
+ — Parse/stringify space-separated tokens
145
145
* [ ` svg-tag-names ` ] ( https://github.com/wooorm/svg-tag-names )
146
- — List of SVG tag-names;
146
+ — List of SVG tag-names
147
147
* [ ` svg-element-attributes ` ] ( https://github.com/wooorm/svg-element-attributes )
148
- — Map of SVG attributes;
148
+ — Map of SVG attributes
149
149
* [ ` web-namespaces ` ] ( https://github.com/wooorm/web-namespaces )
150
- — Map of web namespaces.
150
+ — Map of web namespaces
151
151
152
152
## AST
153
153
0 commit comments