12
12
13
13
## Contents
14
14
15
- * [ What is this?] ( #what-is-this )
16
- * [ When should I use this?] ( #when-should-i-use-this )
17
- * [ Install] ( #install )
18
- * [ Use] ( #use )
19
- * [ API] ( #api )
20
- * [ ` fromSelector(selector?[, options]) ` ] ( #fromselectorselector-options )
21
- * [ ` Options ` ] ( #options )
22
- * [ ` Space ` ] ( #space )
23
- * [ Support] ( #support )
24
- * [ Types] ( #types )
25
- * [ Compatibility] ( #compatibility )
26
- * [ Security] ( #security )
27
- * [ Related] ( #related )
28
- * [ Contribute] ( #contribute )
29
- * [ License] ( #license )
15
+ * [ What is this?] ( #what-is-this )
16
+ * [ When should I use this?] ( #when-should-i-use-this )
17
+ * [ Install] ( #install )
18
+ * [ Use] ( #use )
19
+ * [ API] ( #api )
20
+ * [ ` fromSelector(selector?[, options]) ` ] ( #fromselectorselector-options )
21
+ * [ ` Options ` ] ( #options )
22
+ * [ ` Space ` ] ( #space )
23
+ * [ Support] ( #support )
24
+ * [ Types] ( #types )
25
+ * [ Compatibility] ( #compatibility )
26
+ * [ Security] ( #security )
27
+ * [ Related] ( #related )
28
+ * [ Contribute] ( #contribute )
29
+ * [ License] ( #license )
30
30
31
31
## What is this?
32
32
@@ -107,10 +107,10 @@ Create one or more [`Element`][element]s from a CSS selector.
107
107
108
108
###### Parameters
109
109
110
- * ` selector ` (` string ` , default: ` '' ` )
111
- — CSS selector
112
- * ` options ` ([ ` Options ` ] [ api-options ] , optional)
113
- — configuration
110
+ * ` selector ` (` string ` , default: ` '' ` )
111
+ — CSS selector
112
+ * ` options ` ([ ` Options ` ] [ api-options ] , optional)
113
+ — configuration
114
114
115
115
###### Returns
116
116
@@ -122,10 +122,10 @@ Configuration (TypeScript type).
122
122
123
123
###### Fields
124
124
125
- * ` space ` ([ ` Space ` ] [ api-space ] , default: ` 'html' ` )
126
- — which space first element in the selector is in.
127
- When an ` svg ` element is created in HTML, the space is automatically
128
- switched to SVG
125
+ * ` space ` ([ ` Space ` ] [ api-space ] , default: ` 'html' ` )
126
+ — which space first element in the selector is in.
127
+ When an ` svg ` element is created in HTML, the space is automatically
128
+ switched to SVG
129
129
130
130
### ` Space `
131
131
@@ -139,16 +139,16 @@ type Space = 'html' | 'svg'
139
139
140
140
## Support
141
141
142
- * [x] ` *` (universal selector, *creates a ` div ` in HTML, ` g ` in SVG*)
143
- * [x] ` p ` (type selector)
144
- * [x] ` .class ` (class selector)
145
- * [x] ` #id ` (id selector)
146
- * [x] ` [attr ]` (attribute existence, *creates a boolean*)
147
- * [x] ` [attr =value ]` (attribute equality)
148
- * [x] ` article p ` (descendant combinator)
149
- * [x] ` article > p ` (child combinator)
150
- * [x] ` section h1 + p ` (next-sibling combinator, *not at root*)
151
- * [x] ` section h1 ~ p ` (subsequent-sibling combinator, *not at root*)
142
+ * [x] ` *` (universal selector, *creates a ` div ` in HTML, ` g ` in SVG*)
143
+ * [x] ` p ` (type selector)
144
+ * [x] ` .class ` (class selector)
145
+ * [x] ` #id ` (id selector)
146
+ * [x] ` [attr ]` (attribute existence, *creates a boolean*)
147
+ * [x] ` [attr =value ]` (attribute equality)
148
+ * [x] ` article p ` (descendant combinator)
149
+ * [x] ` article > p ` (child combinator)
150
+ * [x] ` section h1 + p ` (next-sibling combinator, *not at root*)
151
+ * [x] ` section h1 ~ p ` (subsequent-sibling combinator, *not at root*)
152
152
153
153
## Types
154
154
@@ -177,8 +177,8 @@ Either do not use user input in `from-selector` or use
177
177
178
178
## Related
179
179
180
- * [ ` hast -util -parse -selector ` ](https://github.com/syntax-tree/hast-util-parse-selector)
181
- — create an element from a simple CSS selector
180
+ * [ ` hast -util -parse -selector ` ](https://github.com/syntax-tree/hast-util-parse-selector)
181
+ — create an element from a simple CSS selector
182
182
183
183
## Contribute
184
184
0 commit comments