Skip to content

Conversion support ​

File opening, source editing, and conversion have different contracts. A successful preview does not imply that Coral can write another source format.

OperationSupported behaviorLimit
Open saved CoralRetain exact authored text, including malformed draftsRendering and semantic export require accepted current meaning
Open Mermaid sequenceThe shared transpiler verifies messages, recursive fragments, notes and activations before automatic conversionLossy or refused inputs retain exact Mermaid source for explicit review
Open other Mermaid, DOT, or PlantUMLRetain the imported source and its format; show supported parsed meaningUnsupported constructs have diagnostics; use explicit conversion for Mermaid
Deterministic Mermaid to Coral (Editor, MCP coral_convert, CLI coral convert)Direct zero-LLM 5-stage transpiler for Flowchart (flowchart, opt-in block/architecture), Sequence (uml-sequence), Class (uml-class), ER (erd), and State (uml-state Edition 0.2.17 visual default or 0.2.8 opt-in) with mandatory parse-back verificationNon-Top-5 Mermaid types refuse cleanly (mermaid.diagram.unsupported); lossy constructs emit located diagnostics and pre-commit review in the editor
Switch a saved Coral document's formatSource ownership refuses graph-only format replacementUse an explicit supported export or keep the original source
MCP and CLI Coral to CoralPreserve valid authored bytesInvalid or unsupported meaning refuses
MCP and CLI saved Coral to GraphIR JSONVerify exact successor schema/catalog and source meaning before exportGraphIR 4 remains a separate candidate contract
MCP and CLI DOT or PlantUML to CoralRefuses cleanly (mcp.coral028.writer.unavailable / coral.cli.writer.unavailable)No verified Coral source writer for DOT or PlantUML; GraphIR JSON import stays bounded
Graph interchange printersDeclared graph-to-text conversions with loss diagnosticsDisplay/staging graphs are not saved-source masters

Coral 0.2.17 ships the deterministic, zero-LLM Mermaid-to-Coral transpiler across @coral-viz/language (transpileMermaidToCoral), @coral-viz/render (transpileAndVerifyMermaidToCoral and coral convert), @coral-viz/mcp-server (coral_convert), and the diagram editor's Convert to Editable Coral workflow with pre-commit loss review and single atomic Undo. This feature is separate from AI.

Imports cover bounded families and constructs. Diagnostics identify unsupported or lossy meaning at the applicable operation; a parse or diagram preview alone does not certify full Mermaid, UML, BPMN, or other external-standard support. See the MCP reference and language API for operation contracts.