Add description of indent
on node.position
· syntax-tree/unist@60da1d2 (original) (raw)
`@@ -28,8 +28,13 @@ This document explains some terminology relating to
`
28
28
`` end
, both of which contain an object with line
and column
set
``
29
29
` to an integer referencing their respective (1-based) line and column
`
30
30
`` in the input file. Both may have an offset
property set to its
``
31
``
`-
index from the beginning of the input. If a node represents something not
`
32
``
`` -
available in the original input, it must not have a position
.
``
``
31
`+
index from the beginning of the input.
`
``
32
`` +
The object at position
may additionally have an indent
property
``
``
33
`+
set to an array of integers higher than 0 (not including), in which
`
``
34
`+
case the node represents content which spans multiple lines prefixed
`
``
35
`+
with content which is not part of the node.
`
``
36
`+
If a node represents something not available in the original input, it
`
``
37
`` +
must not have a position
.
``
33
38
``
34
39
`See nlcst for more information
`
35
40
`` on retext nodes, and mdast/doc/nodes.md
``