Skip to content

Commit d93ecf1

Browse files
committed
Refactor docs
1 parent 7ec5ae5 commit d93ecf1

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

readme.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,23 @@ Yields:
5555

5656
DSL 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

0 commit comments

Comments
 (0)