Expand description
Mermaid parser + semantic model (headless).
Design goals:
- 1:1 parity with the repository’s pinned upstream Mermaid baseline
- deterministic, testable outputs (semantic snapshot goldens)
- runtime-agnostic async APIs (no specific executor required)
Re-exports§
pub use config::MermaidConfig;pub use detect::Detector;pub use detect::DetectorRegistry;pub use diagram::DiagramRegistry;pub use diagram::DiagramSemanticParser;pub use diagram::ParsedDiagram;pub use diagram::ParsedDiagramRender;pub use diagram::RenderDiagramRegistry;pub use diagram::RenderSemanticModel;pub use diagram::RenderSemanticParser;pub use error::Error;pub use error::Result;pub use preprocess::PreprocessResult;pub use preprocess::preprocess_diagram;pub use preprocess::preprocess_diagram_with_known_type;
Modules§
- baseline
- Active upstream Mermaid baseline metadata.
- common
- common_
db - config
- detect
- diagram
- diagrams
- entities
- error
- generated
- geom
- models
- preprocess
- sanitize
- time
- utils
Structs§
- Engine
- Headless Mermaid parser engine.
- Parse
Metadata - Metadata extracted before semantic diagram parsing.
- Parse
Options - Parser behavior switches shared by metadata, semantic JSON, and typed render-model parsing.
Constants§
- MAX_
DIAGRAM_ NESTING_ DEPTH - Maximum nested diagram/include depth accepted by recursive parsers.
Functions§
- supported_
diagrams - Returns supported diagram metadata names for binding and host capability discovery.
- supported_
themes - Returns Mermaid theme names supported by the pinned baseline.