Source path (a .mmd extension switches to whole-file mode).
Document contents.
Fence markers to recognize (see ExtractOptions).
Resolved per-rule severities for the semantic pass. Defaults to RULE_DEFAULTS.
Every diagnostic across all blocks, with absolute coordinates.
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.