Function: createMdSectionBuilder()
ts
function createMdSectionBuilder<T>(path, heading): MdSectionSourceBuilder<T>;Defined in: markdown/src/builders/create-md-section-builder.ts:17
Builds a MdSectionSourceBuilder<T> for md.section(path, heading).
Sets id: "md:section:${path}#${heading}" and compiles to a passive MarkdownSectionSourceNode<T> extracting the content under heading up to the next heading of equal or higher depth.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
T | string | Resolved section content type. |
Parameters
| Parameter | Type | Description |
|---|---|---|
path | string | Host-root-relative path to the Markdown document. |
heading | string | Target Markdown heading title to extract. |
Returns
Frozen MdSectionSourceBuilder<T> instance.