Skip to content

Function: executeMarkdownSectionSource() ​

ts
function executeMarkdownSectionSource<T>(
   node, 
   _input, 
   _ctx
): Promise<ResolvedSourceArtifact<T>>;

Defined in: markdown/src/executors/markdown-source-executors.ts:77

Executes a MarkdownSectionSourceNode<T> against the immutable host repository root (SPEC.md §4.5).

Reads the Markdown file at node.path, extracts the section beneath node.heading, and computes its SHA-256 digest.

Type Parameters ​

Type ParameterDefault typeDescription
TstringResolved section content type.

Parameters ​

ParameterTypeDescription
nodeMarkdownSectionSourceNode<T>Passive Markdown section source AST node.
_inputunknownUnused executor input parameter.
_ctxResolutionContextActive source resolution context.

Returns ​

Promise<ResolvedSourceArtifact<T>>

Extracted section text and SHA-256 hex digest.

Released under the MIT License.