Skip to content
1 min read · 153 words

Interface: MarkdownHeadingEntry

A single heading entry in the document's structural index.

Remarks

startLine is the 0-based line of the heading itself. endLine is the 0-based index of the last line belonging to this section (inclusive) — the line immediately before the next heading of equal or lesser depth, or the last line of the document.

Properties

PropertyTypeDescription
depth1 | 2 | 3 | 4 | 5 | 6ATX heading depth: 1 (#) through 6 (######).
endLinenumber0-based line index of the last line in this section (inclusive).
startLinenumber0-based line index of the heading line itself.
textstringThe heading text with the leading # prefix stripped and trimmed.