scanMarkdownIncludes
scanMarkdownIncludes(
content,file):IncludeDirective[]
Defined in: preprocess/include/scan-markdown.ts:65
Scan markdown content for include directives
Parameters
Section titled “Parameters”content
Section titled “content”string
Markdown file content
string
Canonical path of the file being scanned
Returns
Section titled “Returns”Array of include directives in encounter order
Example
Section titled “Example”const content = `# Title:::include ./intro.md :::## Next Section`;const includes = scanMarkdownIncludes(content, '/spec/format.md');// Returns: [{ relativePath: './intro.md', ... }]