|
8 | 8 | [![Backers][backers-badge]][collective]
|
9 | 9 | [![Chat][chat-badge]][chat]
|
10 | 10 |
|
11 |
| -[**unist**][unist] utility with equivalents `querySelector`, `querySelectorAll`, |
12 |
| -and `matches`. |
| 11 | +[**unist**][unist] utility with equivalents for `querySelector`, |
| 12 | +`querySelectorAll`, and `matches`. |
13 | 13 |
|
14 | 14 | Note that the DOM has references to their parent nodes, meaning that
|
15 | 15 | `document.body.matches(':last-child')` can be evaluated.
|
@@ -72,8 +72,7 @@ console.log(
|
72 | 72 | Yields:
|
73 | 73 |
|
74 | 74 | ```js
|
75 |
| -{ type: 'paragraph', |
76 |
| - children: [ { type: 'text', value: 'Delta' } ] } |
| 75 | +{type: 'paragraph', children: [{type: 'text', value: 'Delta'}]} |
77 | 76 | ```
|
78 | 77 |
|
79 | 78 | ### `select.selectAll(selector, tree)`
|
@@ -105,10 +104,10 @@ console.log(
|
105 | 104 | Yields:
|
106 | 105 |
|
107 | 106 | ```js
|
108 |
| -[ { type: 'paragraph', |
109 |
| - children: [ { type: 'text', value: 'Delta' } ] }, |
110 |
| - { type: 'paragraph', |
111 |
| - children: [ { type: 'text', value: 'Foxtrot' } ] } ] |
| 107 | +[ |
| 108 | + {type: 'paragraph', children: [{type: 'text', value: 'Delta'}]}, |
| 109 | + {type: 'paragraph', children: [{type: 'text', value: 'Foxtrot'}]} |
| 110 | +] |
112 | 111 | ```
|
113 | 112 |
|
114 | 113 | ## Support
|
@@ -182,8 +181,8 @@ See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
|
182 | 181 | started.
|
183 | 182 | See [`support.md`][help] for ways to get help.
|
184 | 183 |
|
185 |
| -This project has a [Code of Conduct][coc]. |
186 |
| -By interacting with this repository, organisation, or community you agree to |
| 184 | +This project has a [code of conduct][coc]. |
| 185 | +By interacting with this repository, organization, or community you agree to |
187 | 186 | abide by its terms.
|
188 | 187 |
|
189 | 188 | ## License
|
|
0 commit comments