9
9
[ ![ Chat] [ chat-badge ]] [ chat ]
10
10
11
11
[ ** hast** ] [ hast ] utility to transform a [ * tree* ] [ tree ] to something else through
12
- a [ hyperscript] [ ] DSL .
12
+ a [ hyperscript] [ ] interface .
13
13
14
14
## Install
15
15
@@ -41,7 +41,7 @@ var tree = {
41
41
]
42
42
}
43
43
44
- // Transform (`hyperscript` needs `outerHTML` to stringify ):
44
+ // Transform (`hyperscript` needs `outerHTML` to serialize ):
45
45
var doc = toH (h, tree).outerHTML
46
46
47
47
console .log (doc)
@@ -58,7 +58,7 @@ Yields:
58
58
### ` toH(h, tree[, options|prefix]) `
59
59
60
60
Transform a [ ** hast** ] [ hast ] [ * tree* ] [ tree ] to something else through a
61
- [ hyperscript] [ ] DSL .
61
+ [ hyperscript] [ ] interface .
62
62
63
63
###### Parameters
64
64
@@ -67,7 +67,7 @@ Transform a [**hast**][hast] [*tree*][tree] to something else through a
67
67
* ` prefix ` — Treated as ` {prefix: prefix} `
68
68
* ` options.prefix ` (` string ` or ` boolean ` , optional)
69
69
— Prefix to use as a prefix for keys passed in ` attrs ` to ` h() ` ,
70
- this behaviour is turned off by passing ` false ` , turned on by passing
70
+ this behavior is turned off by passing ` false ` , turned on by passing
71
71
a ` string ` .
72
72
By default, ` h- ` is used as a prefix if the given ` h ` is detected as being
73
73
` virtual-dom/h ` or ` React.createElement `
@@ -144,7 +144,7 @@ Use [`hast-util-santize`][sanitize] to make the hast tree safe.
144
144
## Related
145
145
146
146
* [ ` hastscript ` ] [ hastscript ]
147
- — Hyperscript compatible DSL for creating nodes
147
+ — Hyperscript compatible interface for creating nodes
148
148
* [ ` hast-util-sanitize ` ] [ sanitize ]
149
149
— Sanitize nodes
150
150
* [ ` hast-util-from-dom ` ] ( https://github.com/syntax-tree/hast-util-from-dom )
0 commit comments