Skip to content
1 min read · 148 words

Interface: MarkdownSection

Defined in: lib/classes/spooled_markdown_artifact.ts:60

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).lib/classes/spooled_markdown_artifact.ts:69
bodyStartLinenumber0-based line of the first body line (heading line + 1).lib/classes/spooled_markdown_artifact.ts:67
depth1 | 2 | 3 | 4 | 5 | 6-lib/classes/spooled_markdown_artifact.ts:61
headingstringThe heading text.lib/classes/spooled_markdown_artifact.ts:63
headingLinenumber0-based line of the heading itself.lib/classes/spooled_markdown_artifact.ts:65