@@ -132,58 +132,60 @@ interface Text <: Node {
132
132
133
133
###### Tree
134
134
135
- A ** tree** is a node and all of its ** descendants** (if any).
135
+ A ** tree** is a node and all of its [ descendants] [ descendant ] (if any).
136
136
137
137
###### Child
138
138
139
139
Node X is ** child** of node Y, if Y’s ` children ` include X.
140
140
141
141
###### Parent
142
142
143
- Node X is ** parent** of node Y, if Y is a ** child** of X.
143
+ Node X is ** parent** of node Y, if Y is a [ child] [ ] of X.
144
144
145
145
###### Index
146
146
147
- The ** index** of a ** child** is its number of preceding ** siblings** , or ` 0 ` if
148
- it has none.
147
+ The ** index** of a [ child] [ ] is its number of preceding [ siblings] [ sibling ] , or
148
+ ` 0 ` if it has none.
149
149
150
150
###### Sibling
151
151
152
- Node X is a ** sibling** of node Y, if X and Y have the same ** parent** (if any).
152
+ Node X is a ** sibling** of node Y, if X and Y have the same
153
+ [ parent] [ parent-term ] (if any).
153
154
154
- The ** previous sibling** of a ** child** is its ** sibling** at its ** index**
155
+ The ** previous sibling** of a [ child] [ ] is its ** sibling** at its [ index] [ ]
155
156
minus 1.
156
157
157
- The ** next sibling** of a ** child** is its ** sibling** at its ** index**
158
+ The ** next sibling** of a [ child] [ ] is its ** sibling** at its [ index] [ ]
158
159
plus 1.
159
160
160
161
###### Root
161
162
162
- The ** root** of an object is itself, if without ** parent** , or the ** root ** of
163
- its ** parent ** .
163
+ The ** root** of an object is itself, if without [ parent] [ parent-term ] or the
164
+ ** root ** of its [ parent ] [ parent-term ] .
164
165
165
- The ** root** of a ** tree** is any node in that ** tree** without ** parent** .
166
+ The ** root** of a [ tree] [ ] is any node in that [ tree] [ ] without
167
+ [ parent] [ parent-term ] .
166
168
167
169
###### Descendant
168
170
169
- Node X is ** descendant** of node Y, if X is a ** child** of Y, or if X is a
170
- ** child** of node Z that is a ** descendant** of Y.
171
+ Node X is ** descendant** of node Y, if X is a [ child] [ ] of Y, or if X is a
172
+ [ child] [ ] of node Z that is a ** descendant** of Y.
171
173
172
174
An ** inclusive descendant** is a node or one of its ** descendants** .
173
175
174
176
###### Ancestor
175
177
176
- Node X is an ** ancestor** of node Y, if Y is a ** descendant** of X.
178
+ Node X is an ** ancestor** of node Y, if Y is a [ descendant] [ ] of X.
177
179
178
180
An ** inclusive ancestor** is a node or one of its ** ancestors** .
179
181
180
182
###### Head
181
183
182
- The ** head** of a node is its first ** child** (if any).
184
+ The ** head** of a node is its first [ child] [ ] (if any).
183
185
184
186
###### Tail
185
187
186
- The ** tail** of a node is its last ** child** (if any).
188
+ The ** tail** of a node is its last [ child] [ ] (if any).
187
189
188
190
## Unist files
189
191
@@ -328,3 +330,15 @@ Thanks to [**@azu**](https://github.com/azu),
328
330
[ license ] : https://creativecommons.org/licenses/by/4.0/
329
331
330
332
[ author ] : http://wooorm.com
333
+
334
+ [ descendant ] : #descendant
335
+
336
+ [ child ] : #child
337
+
338
+ [ sibling ] : #sibling
339
+
340
+ [ parent-term ] : #parent-1
341
+
342
+ [ index ] : #index
343
+
344
+ [ tree ] : #tree
0 commit comments