A web app that allows you to render Mermaid diagrams in the browser via query params
This link will render the following markdown
graph TD
Foo --> Bar
Bar --> Baz
Baz
The following query parameters are supported:
title
- Optional header displayed on the pagediagram
- Mermaid diagram which needs to be URL encoded
var mermaidMarkdown = ``;
var url = `https://stebaker92.github.io/mermaid-diagram-web/?diagram=${encodeURI(mermaidMarkdown)}`;
var mermaidMarkdown = "";
Process.Start(new ProcessStartInfo($"https://stebaker92.github.io/mermaid-diagram-web/?title=My Diagram&diagram={HttpUtility.UrlEncode(mermaidMarkdown)}") { UseShellExecute = true });
To run this project, just run npx http-server-spa .