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
//! Sequence diagram implementation.
//!
//! Sequence diagrams are timeline-family: participants arranged horizontally
//! with messages flowing vertically between lifelines.

pub mod compiler;
mod instance;

pub use instance::SequenceInstance;

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