merman-core 0.4.2

Mermaid parser + semantic model (headless; parity-focused).
Documentation
1
2
3
4
5
6
7
8
use crate::{ParseMetadata, Result};
use serde_json::{Value, json};

pub fn parse_error(_code: &str, meta: &ParseMetadata) -> Result<Value> {
    Ok(json!({
        "type": meta.diagram_type,
    }))
}