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
- * [ ` findBefore(parent, node|index[, test]) ` ] ( #findbeforeparent-nodeindex-test )
21
- * [ Types] ( #types )
22
- * [ Compatibility] ( #compatibility )
23
- * [ Related] ( #related )
24
- * [ Contribute] ( #contribute )
25
- * [ 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
+ * [ ` findBefore(parent, node|index[, test]) ` ] ( #findbeforeparent-nodeindex-test )
21
+ * [ Types] ( #types )
22
+ * [ Compatibility] ( #compatibility )
23
+ * [ Related] ( #related )
24
+ * [ Contribute] ( #contribute )
25
+ * [ License] ( #license )
26
26
27
27
## What is this?
28
28
@@ -97,14 +97,14 @@ that passes `test`.
97
97
98
98
###### Parameters
99
99
100
- * ` parent ` ([ ` Node ` ] [ node ] )
101
- — parent node
102
- * ` index ` (` number ` )
103
- — index of child in ` parent `
104
- * ` child ` ([ ` Node ` ] [ node ] )
105
- — child in ` parent `
106
- * ` test ` ([ ` Test ` ] [ test ] )
107
- — ` unist-util-is ` -compatible test
100
+ * ` parent ` ([ ` Node ` ] [ node ] )
101
+ — parent node
102
+ * ` index ` (` number ` )
103
+ — index of child in ` parent `
104
+ * ` child ` ([ ` Node ` ] [ node ] )
105
+ — child in ` parent `
106
+ * ` test ` ([ ` Test ` ] [ test ] )
107
+ — ` unist-util-is ` -compatible test
108
108
109
109
###### Returns
110
110
@@ -127,28 +127,28 @@ compatible with Node.js 16.
127
127
128
128
## Related
129
129
130
- * [ ` unist-util-find-after ` ] ( https://github.com/syntax-tree/unist-util-find-after )
131
- — find a node after another node
132
- * [ ` unist-util-find-all-after ` ] ( https://github.com/syntax-tree/unist-util-find-all-after )
133
- — find all nodes after another node
134
- * [ ` unist-util-find-all-before ` ] ( https://github.com/syntax-tree/unist-util-find-all-before )
135
- — find all nodes before another node
136
- * [ ` unist-util-find-all-between ` ] ( https://github.com/mrzmmr/unist-util-find-all-between )
137
- — find all nodes between two nodes
138
- * [ ` unist-util-visit ` ] ( https://github.com/syntax-tree/unist-util-visit )
139
- — walk the tree
140
- * [ ` unist-util-visit-parents ` ] ( https://github.com/syntax-tree/unist-util-visit-parents )
141
- — walk the tree with a stack of parents
142
- * [ ` unist-util-filter ` ] ( https://github.com/syntax-tree/unist-util-filter )
143
- — create a new tree with all nodes that pass a test
144
- * [ ` unist-util-map ` ] ( https://github.com/syntax-tree/unist-util-map )
145
- — create a new tree with all nodes mapped by a given function
146
- * [ ` unist-util-flatmap ` ] ( https://gitlab.com/staltz/unist-util-flatmap )
147
- — create a new tree by mapping (to an array) by a given function
148
- * [ ` unist-util-remove ` ] ( https://github.com/syntax-tree/unist-util-remove )
149
- — remove nodes from a tree that pass a test
150
- * [ ` unist-util-select ` ] ( https://github.com/syntax-tree/unist-util-select )
151
- — select nodes with CSS-like selectors
130
+ * [ ` unist-util-find-after ` ] ( https://github.com/syntax-tree/unist-util-find-after )
131
+ — find a node after another node
132
+ * [ ` unist-util-find-all-after ` ] ( https://github.com/syntax-tree/unist-util-find-all-after )
133
+ — find all nodes after another node
134
+ * [ ` unist-util-find-all-before ` ] ( https://github.com/syntax-tree/unist-util-find-all-before )
135
+ — find all nodes before another node
136
+ * [ ` unist-util-find-all-between ` ] ( https://github.com/mrzmmr/unist-util-find-all-between )
137
+ — find all nodes between two nodes
138
+ * [ ` unist-util-visit ` ] ( https://github.com/syntax-tree/unist-util-visit )
139
+ — walk the tree
140
+ * [ ` unist-util-visit-parents ` ] ( https://github.com/syntax-tree/unist-util-visit-parents )
141
+ — walk the tree with a stack of parents
142
+ * [ ` unist-util-filter ` ] ( https://github.com/syntax-tree/unist-util-filter )
143
+ — create a new tree with all nodes that pass a test
144
+ * [ ` unist-util-map ` ] ( https://github.com/syntax-tree/unist-util-map )
145
+ — create a new tree with all nodes mapped by a given function
146
+ * [ ` unist-util-flatmap ` ] ( https://gitlab.com/staltz/unist-util-flatmap )
147
+ — create a new tree by mapping (to an array) by a given function
148
+ * [ ` unist-util-remove ` ] ( https://github.com/syntax-tree/unist-util-remove )
149
+ — remove nodes from a tree that pass a test
150
+ * [ ` unist-util-select ` ] ( https://github.com/syntax-tree/unist-util-select )
151
+ — select nodes with CSS-like selectors
152
152
153
153
## Contribute
154
154
0 commit comments