File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ See [**nlcst**][nlcst] for more information on **retext** nodes,
48
48
49
49
A Node represents any unit in the Unist hierarchy. It is an abstract
50
50
interface. Interfaces extending ** Node** must have a ` type ` property,
51
- and may have ` data ` or ` position ` properties. ` type ` s are defined by
52
- their namespace.
51
+ and may have ` data ` or ` position ` properties. The value of node [ type ] [ ] s
52
+ are defined by their namespace.
53
53
54
54
Subsets of Unist are allowed to define properties on interfaces which
55
55
extend Unist’s abstract interfaces. For example, [ mdast] [ ] defines
@@ -187,6 +187,10 @@ The **head** of a node is its first [child][] (if any).
187
187
188
188
The ** tail** of a node is its last [ child] [ ] (if any).
189
189
190
+ ###### Type
191
+
192
+ The ** type** of a node is the value of its ` type ` property.
193
+
190
194
## Unist files
191
195
192
196
** Unist files** are virtual files (such as [ ** vfile** ] [ vfile ] )
@@ -344,3 +348,5 @@ Thanks to [**@azu**](https://github.com/azu),
344
348
[ index ] : #index
345
349
346
350
[ tree ] : #tree
351
+
352
+ [ type ] : #type
You can’t perform that action at this time.
0 commit comments