Skip to content

Commit 2ff238e

Browse files
committed
Add type to glossary
1 parent 5120e77 commit 2ff238e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

readme.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ See [**nlcst**][nlcst] for more information on **retext** nodes,
4848

4949
A Node represents any unit in the Unist hierarchy. It is an abstract
5050
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.
5353

5454
Subsets of Unist are allowed to define properties on interfaces which
5555
extend Unist’s abstract interfaces. For example, [mdast][] defines
@@ -187,6 +187,10 @@ The **head** of a node is its first [child][] (if any).
187187

188188
The **tail** of a node is its last [child][] (if any).
189189

190+
###### Type
191+
192+
The **type** of a node is the value of its `type` property.
193+
190194
## Unist files
191195

192196
**Unist files** are virtual files (such as [**vfile**][vfile])
@@ -344,3 +348,5 @@ Thanks to [**@azu**](https://github.com/azu),
344348
[index]: #index
345349

346350
[tree]: #tree
351+
352+
[type]: #type

0 commit comments

Comments
 (0)