@mermaid-lint/core
    Preparing search index...

    Function lintMarkdown

    • Extract every Mermaid block from a Markdown (or .mmd) document and return all diagnostics with absolute coordinates. Lines are clamped to the document so a structural error at EOF can't point past the last line. This is the main entry point for Markdown tool integrations.

      Parameters

      • path: string

        Source path (a .mmd extension switches to whole-file mode).

      • text: string

        Document contents.

      • options: ExtractOptions = {}

        Fence markers to recognize (see ExtractOptions).

      • rules: ResolvedRules = RULE_DEFAULTS

        Resolved per-rule severities for the semantic pass. Defaults to RULE_DEFAULTS.

      Returns Promise<Diagnostic[]>

      Every diagnostic across all blocks, with absolute coordinates.