---
url: >-
  https://adk.nht.io/api/@nhtio/adk/spooled_artifact/interfaces/MarkdownSection.md
description: >-
  A section of a markdown document as returned by {@link
  SpooledMarkdownArtifact.md_sections}.
---

# Interface: MarkdownSection

Defined in: [lib/classes/spooled\_markdown\_artifact.ts:60](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/classes/spooled_markdown_artifact.ts#L60)

A section of a markdown document as returned by [SpooledMarkdownArtifact.md\_sections](../classes/SpooledMarkdownArtifact.md#md_sections).

## Remarks

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

## Properties

| Property                                            | Type                                   | Description                                             | Defined in                                                                                                                                      |
| --------------------------------------------------- | -------------------------------------- | ------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
|  `bodyEndLine`     | `number`                               | 0-based line of the last body line (inclusive).         | [lib/classes/spooled\_markdown\_artifact.ts:69](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/classes/spooled_markdown_artifact.ts#L69) |
|  `bodyStartLine` | `number`                               | 0-based line of the first body line (heading line + 1). | [lib/classes/spooled\_markdown\_artifact.ts:67](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/classes/spooled_markdown_artifact.ts#L67) |
|  `depth`                 | `1` | `2` | `3` | `4` | `5` | `6` | -                                                       | [lib/classes/spooled\_markdown\_artifact.ts:61](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/classes/spooled_markdown_artifact.ts#L61) |
|  `heading`             | `string`                               | The heading text.                                       | [lib/classes/spooled\_markdown\_artifact.ts:63](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/classes/spooled_markdown_artifact.ts#L63) |
|  `headingLine`     | `number`                               | 0-based line of the heading itself.                     | [lib/classes/spooled\_markdown\_artifact.ts:65](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/classes/spooled_markdown_artifact.ts#L65) |
