Skip to content
1 min read · 155 words

Interface: MarkdownSection

Defined in: src/lib/classes/spooled_markdown_artifact.ts:64

A section of a markdown document as returned by SpooledMarkdownArtifact.md_sections.

Remarks

Contains only line-range metadata — no content is fetched until the caller explicitly requests it via cat(bodyStartLine, bodyEndLine + 1).

Properties

PropertyTypeDescriptionDefined in
bodyEndLinenumber0-based line of the last body line (inclusive).src/lib/classes/spooled_markdown_artifact.ts:74
bodyStartLinenumber0-based line of the first body line (heading line + 1).src/lib/classes/spooled_markdown_artifact.ts:72
depth1 | 2 | 3 | 4 | 5 | 6ATX heading depth: 1 (#) through 6 (######).src/lib/classes/spooled_markdown_artifact.ts:66
headingstringThe heading text.src/lib/classes/spooled_markdown_artifact.ts:68
headingLinenumber0-based line of the heading itself.src/lib/classes/spooled_markdown_artifact.ts:70