Skip to content

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 ParameterDefault typeDescription
TstringResolved 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 ​

MarkdownSectionSourceNode<T>

Frozen passive MarkdownSectionSourceNode<T>.

Overrides ​

AstBuilder.toAST

Properties ​

PropertyModifierTypeDescriptionInherited fromDefined in
__dataType?readonlyBivariantCallback<[data: T], void>Phantom type brand preserving the resolved content type T.MarkdownSectionSourceNode.__dataTypecore/dist/ast/base/base-source-ast-node.d.ts:17
headingreadonlystringTarget heading title to extract.MarkdownSectionSourceNode.headingcore/dist/ast/domain/markdown-section-source-node.d.ts:14
idreadonlystringLogical identifier of the source descriptor.MarkdownSectionSourceNode.idcore/dist/ast/base/base-source-ast-node.d.ts:15
pathreadonlystringHost-root-relative path to the Markdown file.MarkdownSectionSourceNode.pathcore/dist/ast/domain/markdown-section-source-node.d.ts:12
typereadonly"markdown:section"Unique string-literal discriminant of the source node.MarkdownSectionSourceNode.typecore/dist/ast/base/base-source-ast-node.d.ts:13

Released under the MIT License.