Skip to content

Commit 927e741

Browse files
committed
Refactor prose
1 parent 05d0744 commit 927e741

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

readme.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
[![Backers][backers-badge]][collective]
99
[![Chat][chat-badge]][chat]
1010

11-
Calculate the number of nodes in a [**Unist**][unist] tree.
11+
[**unist**][unist] utility to calculate the number of nodes in a tree.
1212

13-
## Installation
13+
## Install
1414

1515
[npm][]:
1616

@@ -45,15 +45,17 @@ console.log(size(tree.children[0].children[0])) // => 0
4545
### `size(tree)`
4646

4747
Calculate the number of nodes in [`node`][node].
48-
The result is excluding the given node itself.
48+
The result is the number of [exclusive descendants][descendant].
4949

5050
## Contribute
5151

52-
See [`contributing.md` in `syntax-tree/unist`][contributing] for ways to get
52+
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
5353
started.
54+
See [`support.md`][support] for ways to get help.
5455

55-
This organisation has a [Code of Conduct][coc]. By interacting with this
56-
repository, organisation, or community you agree to abide by its terms.
56+
This project has a [Code of Conduct][coc].
57+
By interacting with this repository, organisation, or community you agree to
58+
abide by its terms.
5759

5860
## License
5961

@@ -93,10 +95,14 @@ repository, organisation, or community you agree to abide by its terms.
9395

9496
[author]: https://wooorm.com
9597

98+
[contributing]: https://github.com/syntax-tree/.github/blob/master/contributing.md
99+
100+
[support]: https://github.com/syntax-tree/.github/blob/master/support.md
101+
102+
[coc]: https://github.com/syntax-tree/.github/blob/master/code-of-conduct.md
103+
96104
[unist]: https://github.com/syntax-tree/unist
97105

98106
[node]: https://github.com/syntax-tree/unist#node
99107

100-
[contributing]: https://github.com/syntax-tree/unist/blob/master/contributing.md
101-
102-
[coc]: https://github.com/syntax-tree/unist/blob/master/code-of-conduct.md
108+
[descendant]: https://github.com/syntax-tree/unist#descendant

0 commit comments

Comments
 (0)