Mermaid RS Renderer (mmdr) is a native Rust rendering engine designed to convert Mermaid diagram definitions into graphical output. It processes diagram syntax without requiring a browser, Node.js, or Puppeteer. The application supports numerous diagram categories, including flowcharts, sequence diagrams, class diagrams, Gantt charts, and architectural representations. Users can generate SVG and PNG images from individual source files or standard input. Batch processing extracts and renders multiple Mermaid diagrams embedded within Markdown documents. Custom styling supports themes, node shapes, edge decorations, and nested subgraphs. The project provides both a standalone command-line executable and a reusable Rust library for integration into documentation and development tools.
Features
- Native Rust diagram rendering without browser or JavaScript runtime dependencies
- Support for numerous Mermaid diagram types covering technical and planning workflows
- SVG and PNG image generation with configurable output dimensions
- Batch rendering of Mermaid diagrams embedded within Markdown documents
- Customizable diagram themes, node shapes, edge styles, and nested subgraphs
- Embeddable Rust library and command-line interface for automated documentation workflows