Skip to content

A .NET library for rendering Mermaid diagrams to SVG. No browser or JavaScript runtime required.

License

Notifications You must be signed in to change notification settings

SimonCropp/Naiad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Naiad

Build status NuGet Status

A .NET library for rendering Mermaid diagrams to SVG. No browser or JavaScript runtime required.

NuGet package

https://nuget.org/packages/Naiad/

Usage

var svg = Mermaid.Render(
    """
    flowchart LR
        A[Start] --> B[Process] --> C[End]
    """);

The diagram type is automatically detected from the input.

Render Options

var svg = Mermaid.Render(
    input,
    new RenderOptions
    {
        Padding = 20,
        FontSize = 14,
        FontFamily = "Arial, sans-serif"
    });

Supported Diagram Types

Test Renders

Auto-generated documentation from the test suite.

Beta diagram types

Icon

Mermaid Tail designed by Olena Panasovska from The Noun Project.

About

A .NET library for rendering Mermaid diagrams to SVG. No browser or JavaScript runtime required.

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages