|
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 | | - * [`visit(tree[, test], visitor[, reverse])`](#visittree-test-visitor-reverse) |
21 | | - * [`CONTINUE`](#continue) |
22 | | - * [`EXIT`](#exit) |
23 | | - * [`SKIP`](#skip) |
24 | | - * [`Action`](#action) |
25 | | - * [`ActionTuple`](#actiontuple) |
26 | | - * [`BuildVisitor`](#buildvisitor) |
27 | | - * [`Index`](#index) |
28 | | - * [`Test`](#test) |
29 | | - * [`Visitor`](#visitor) |
30 | | - * [`VisitorResult`](#visitorresult) |
31 | | -* [Types](#types) |
32 | | -* [Compatibility](#compatibility) |
33 | | -* [Related](#related) |
34 | | -* [Contribute](#contribute) |
35 | | -* [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 | + * [`visit(tree[, test], visitor[, reverse])`](#visittree-test-visitor-reverse) |
| 21 | + * [`CONTINUE`](#continue) |
| 22 | + * [`EXIT`](#exit) |
| 23 | + * [`SKIP`](#skip) |
| 24 | + * [`Action`](#action) |
| 25 | + * [`ActionTuple`](#actiontuple) |
| 26 | + * [`BuildVisitor`](#buildvisitor) |
| 27 | + * [`Index`](#index) |
| 28 | + * [`Test`](#test) |
| 29 | + * [`Visitor`](#visitor) |
| 30 | + * [`VisitorResult`](#visitorresult) |
| 31 | +* [Types](#types) |
| 32 | +* [Compatibility](#compatibility) |
| 33 | +* [Related](#related) |
| 34 | +* [Contribute](#contribute) |
| 35 | +* [License](#license) |
36 | 36 |
|
37 | 37 | ## What is this? |
38 | 38 |
|
@@ -160,12 +160,12 @@ traversed. |
160 | 160 |
|
161 | 161 | ###### Parameters |
162 | 162 |
|
163 | | -* `node` ([`Node`][node]) |
164 | | - — found node |
165 | | -* `index` (`number` or `undefined`) |
166 | | - — index of `node` in `parent` |
167 | | -* `parent` ([`Node`][node] or `undefined`) |
168 | | - — parent of `node` |
| 163 | +* `node` ([`Node`][node]) |
| 164 | + — found node |
| 165 | +* `index` (`number` or `undefined`) |
| 166 | + — index of `node` in `parent` |
| 167 | +* `parent` ([`Node`][node] or `undefined`) |
| 168 | + — parent of `node` |
169 | 169 |
|
170 | 170 | ###### Returns |
171 | 171 |
|
@@ -203,18 +203,18 @@ compatible with Node.js 16. |
203 | 203 |
|
204 | 204 | ## Related |
205 | 205 |
|
206 | | -* [`unist-util-visit-parents`][vp] |
207 | | - — walk the tree with a stack of parents |
208 | | -* [`unist-util-filter`](https://github.com/syntax-tree/unist-util-filter) |
209 | | - — create a new tree with all nodes that pass a test |
210 | | -* [`unist-util-map`](https://github.com/syntax-tree/unist-util-map) |
211 | | - — create a new tree with all nodes mapped by a given function |
212 | | -* [`unist-util-flatmap`](https://gitlab.com/staltz/unist-util-flatmap) |
213 | | - — create a new tree by mapping (to an array) with the given function |
214 | | -* [`unist-util-remove`](https://github.com/syntax-tree/unist-util-remove) |
215 | | - — remove nodes from a tree that pass a test |
216 | | -* [`unist-util-select`](https://github.com/syntax-tree/unist-util-select) |
217 | | - — select nodes with CSS-like selectors |
| 206 | +* [`unist-util-visit-parents`][vp] |
| 207 | + — walk the tree with a stack of parents |
| 208 | +* [`unist-util-filter`](https://github.com/syntax-tree/unist-util-filter) |
| 209 | + — create a new tree with all nodes that pass a test |
| 210 | +* [`unist-util-map`](https://github.com/syntax-tree/unist-util-map) |
| 211 | + — create a new tree with all nodes mapped by a given function |
| 212 | +* [`unist-util-flatmap`](https://gitlab.com/staltz/unist-util-flatmap) |
| 213 | + — create a new tree by mapping (to an array) with the given function |
| 214 | +* [`unist-util-remove`](https://github.com/syntax-tree/unist-util-remove) |
| 215 | + — remove nodes from a tree that pass a test |
| 216 | +* [`unist-util-select`](https://github.com/syntax-tree/unist-util-select) |
| 217 | + — select nodes with CSS-like selectors |
218 | 218 |
|
219 | 219 | ## Contribute |
220 | 220 |
|
|
0 commit comments