File tree Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -55,19 +55,23 @@ Yields:
5555
5656DSL for creating virtual [ HAST] [ ] trees.
5757
58- ###### Parameters
59-
60- * ` selector ` (` string ` , optional)
61- — Simple CSS selector, e.g., tag names (` foo ` ), IDs (` #bar ` )
62- and classes (` .baz ` ) are supported,
63- defaults to a ` div ` element.
64- * ` properties ` (` Object.<string, *> ` , optional)
65- — Map of properties;
66- * ` children ` (` string ` , ` Node ` , ` Array.<string|Node> ` , optional)
67- — (List of) child nodes, when strings are encountered,
68- they are normalised to [ ` text ` ] [ text ] nodes.
69-
70- ###### Returns
58+ ##### Parameters
59+
60+ ###### ` selector `
61+
62+ Simple CSS selector (` string ` , optional). Can contain a tag name (` foo ` ), IDs
63+ (` #bar ` ), and classes (` .baz ` ), defaults to a ` div ` element.
64+
65+ ###### ` properties `
66+
67+ Map of properties (` Object.<string, *> ` , optional).
68+
69+ ###### ` children `
70+
71+ (List of) child nodes (` string ` , ` Node ` , ` Array.<string|Node> ` , optional).
72+ When strings are encountered, they are normalised to [ ` text ` ] [ text ] nodes.
73+
74+ ##### Returns
7175
7276[ ` Element ` ] [ element ] .
7377
You can’t perform that action at this time.
0 commit comments