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

    Function extractMermaidBlocks

    • Extract every Mermaid diagram from a Markdown document, or treat the whole file as one diagram when path ends in .mmd. CRLF line endings are normalized before scanning.

      Parameters

      • path: string

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

      • text: string

        File contents to scan.

      • options: ExtractOptions = {}

        Fence markers to recognize (see ExtractOptions).

      Returns Block[]

      One Block per Mermaid block found, in document order.