Skip to content

Commit

Permalink
Refactor prose
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Feb 17, 2020
1 parent e4b1c6e commit c7dc44b
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
[![Backers][backers-badge]][collective]
[![Chat][chat-badge]][chat]

[**unist**][unist] utility with equivalents `querySelector`, `querySelectorAll`,
and `matches`.
[**unist**][unist] utility with equivalents for `querySelector`,
`querySelectorAll`, and `matches`.

Note that the DOM has references to their parent nodes, meaning that
`document.body.matches(':last-child')` can be evaluated.
Expand Down Expand Up @@ -72,8 +72,7 @@ console.log(
Yields:

```js
{ type: 'paragraph',
children: [ { type: 'text', value: 'Delta' } ] }
{type: 'paragraph', children: [{type: 'text', value: 'Delta'}]}
```

### `select.selectAll(selector, tree)`
Expand Down Expand Up @@ -105,10 +104,10 @@ console.log(
Yields:

```js
[ { type: 'paragraph',
children: [ { type: 'text', value: 'Delta' } ] },
{ type: 'paragraph',
children: [ { type: 'text', value: 'Foxtrot' } ] } ]
[
{type: 'paragraph', children: [{type: 'text', value: 'Delta'}]},
{type: 'paragraph', children: [{type: 'text', value: 'Foxtrot'}]}
]
```

## Support
Expand Down Expand Up @@ -182,8 +181,8 @@ See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
started.
See [`support.md`][help] for ways to get help.

This project has a [Code of Conduct][coc].
By interacting with this repository, organisation, or community you agree to
This project has a [code of conduct][coc].
By interacting with this repository, organization, or community you agree to
abide by its terms.

## License
Expand Down

0 comments on commit c7dc44b

Please sign in to comment.