SectionLocation

data class SectionLocation(val levels: List<Int>)

The location of a node within the document, in terms of section indices. Example:

# A
## A.A
# B
## B.A
Node <-- location: B.A, represented by the levels [2, 1]

Parameters

levels

section indices

Constructors

Link copied to clipboard
constructor(levels: List<Int>)

Properties

Link copied to clipboard
val depth: Int

The depth of this location, i.e., the number of levels it contains. Example: the location [1, 1] has a depth of 2.

Link copied to clipboard