scanHtmlIncludes
scanHtmlIncludes(
content,file):IncludeDirective[]
Defined in: preprocess/include/scan-html.ts:79
Scan HTML content for include directives
Parameters
Section titled “Parameters”content
Section titled “content”string
HTML 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 = `<body> <section data-include="./intro.md" data-include-format="markdown"></section></body>`;const includes = scanHtmlIncludes(content, '/spec/format.html');// Returns: [{ relativePath: './intro.md', format: 'markdown', ... }]