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

    Function validateBlock

    • Validate an extracted Block end to end: structural checks (unclosed / empty fence), semantic warnings, then the fast Rust (merman) parser with a mermaid.js fallback for anything merman rejects. mermaid.js is treated as authoritative on the final verdict.

      Bodies that fail mermanVerdictIsTrustworthy skip the fast path and always consult mermaid.js, because merman claims to accept input it never really parsed.

      Parameters

      Returns Promise<ValidationResult>

      A ValidationResult carrying the verdict and any warnings.