mmdflux 2.1.0

Render Mermaid diagrams as Unicode text, ASCII, SVG, and MMDS JSON.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Class diagram implementation.
//!
//! Class diagrams are node-edge graphs rendered using the graph-family layout engines.
//! Nodes represent classes with optional member lists; edges represent relationships
//! (association, inheritance, composition, aggregation, dependency).

pub mod compiler;
mod instance;

pub use instance::ClassInstance;

/// Detect if input is a class diagram.
pub fn detect(input: &str) -> bool {
    crate::mermaid::detect_diagram_type(input) == Some(crate::mermaid::DiagramType::Class)
}