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

    Function validateWithMermaidJS

    • Validate raw diagram source with the bundled mermaid.js parser, the authoritative engine for error location and final verdict. Boots a jsdom window lazily on first call. Returns a syntax error without semantic warnings; use validateBlock for the full pipeline.

      Parameters

      • body: string

        Raw Mermaid diagram source.

      Returns Promise<{ ok: true } | { error: ValidationError; ok: false }>

      { ok: true } if mermaid.js parses it, else { ok: false, error }.