Skip to content

Function: createMdScopedRulesBuilder() ​

ts
function createMdScopedRulesBuilder(glob): MdFrontmatterSourceBuilder<readonly object[]>;

Defined in: markdown/src/builders/create-md-scoped-rules-builder.ts:15

Builds a MdFrontmatterSourceBuilder<readonly ScopedRule[]> for md.scopedRules(glob).

Configures kind: 'scoped-rules' and id: "md:scoped-rules:${glob}" so all matching Markdown files are parsed and their frontmatter globs translated into passive FsGlobMatcherNode descriptors.

Parameters ​

ParameterTypeDescription
globstringHost-root-relative glob pattern targeting scoped rule Markdown files.

Returns ​

MdFrontmatterSourceBuilder<readonly object[]>

Frozen scoped rules array source builder.

Released under the MIT License.