Interface: MdSectionSourceBuilder<T>
Defined in: markdown/src/builders/md-section-source-builder.ts:11
Fluent builder and passive AST descriptor for Markdown heading section sources (md.section).
Satisfies both MarkdownSectionSourceNode<T> directly and AstBuilder<MarkdownSectionSourceNode<T>> so extractAST produces a pure passive MarkdownSectionSourceNode<T> record without methods.
Extends
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
T | string | Resolved section content type. |
Methods
toAST()
ts
toAST(): MarkdownSectionSourceNode<T>;Defined in: markdown/src/builders/md-section-source-builder.ts:21
Compiles this builder into a pure, JSON-serializable MarkdownSectionSourceNode<T>.
Strips the builder method wrapper while preserving type, id, path, and heading.
Returns
Frozen passive MarkdownSectionSourceNode<T>.
Overrides
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
__dataType? | readonly | BivariantCallback<[data: T], void> | Phantom type brand preserving the resolved content type T. | MarkdownSectionSourceNode.__dataType | core/dist/ast/base/base-source-ast-node.d.ts:17 |
heading | readonly | string | Target heading title to extract. | MarkdownSectionSourceNode.heading | core/dist/ast/domain/markdown-section-source-node.d.ts:14 |
id | readonly | string | Logical identifier of the source descriptor. | MarkdownSectionSourceNode.id | core/dist/ast/base/base-source-ast-node.d.ts:15 |
path | readonly | string | Host-root-relative path to the Markdown file. | MarkdownSectionSourceNode.path | core/dist/ast/domain/markdown-section-source-node.d.ts:12 |
type | readonly | "markdown:section" | Unique string-literal discriminant of the source node. | MarkdownSectionSourceNode.type | core/dist/ast/base/base-source-ast-node.d.ts:13 |