Questions tagged [mermaid]

Mermaid is a markup language for generating diagrams and flowcharts.

Mermaid allows for generation of diagrams and flowcharts from text in a similar manner as markdown.

You can check its Usage, Flowchart syntax and Sequence diagram syntax.

273 questions
2
votes
1 answer

Display Mermaid diagram from C# variable in Polyglot notebook

I know that Polyglot notebooks support Mermaid diagrams. But it doesn't support veriable sharing. Suppose I have diagram code in C# string variable. Are there any possibility to display that string as diagram? Example: // below diagram code was…
2
votes
1 answer

Mermaid in pdf Quarto

I would like to use mermaid diagrams in Quarto pdf. Here is some reproducible code: --- title: "RenderTest" format: pdf --- ```{mermaid} flowchart LR A[Hard edge] --> B(Round edge) B --> C{Decision} C --> D[Result one] C --> E[Result…
Quinten
  • 35,235
  • 5
  • 20
  • 53
2
votes
0 answers

Is there "!include" directive in mermaid files like in plantuml

I use plantuml for describing class diagrams and I have a number of *.puml files (each for a specific class or set of classes), then I make a single overview file where I include all puml files, like: @startuml ' Overview file for some…
Serhiy
  • 1,332
  • 1
  • 16
  • 24
2
votes
0 answers

How to use Doxygen with Mermaid diagrams embedded in markdown document content?

Example: README.md # Objective How can Doxygen generate content that includes Mermaid diagrams embedded in GitHub markdown files (*.md)? # Mermaid Diagram ```mermaid sequenceDiagram Alice->>John: Hello John, how are you? John-->>Alice:…
Ed of the Mountain
  • 5,219
  • 4
  • 46
  • 54
2
votes
0 answers

How to prevent mermaid flow charts overflowing in quarto

I am trying to create a flow chart in mermaid but the image is overflowing. Edit 1: here is the code I used (it's a .qmd document) --- title: "Workflow" authors: "Satya P" format: pdf --- ```{mermaid} %%| fig-height: 9 flowchart TB 1(Available…
Satya Pamidi
  • 143
  • 8
2
votes
2 answers

Pandoc Mermaid filter

I am trying to use this pandoc filter to convert markdown to HTML. This is the example file: gantt dateFormat YYYY-MM-DD title Adding GANTT diagram functionality to mermaid section A section Completed task …
Pablo
  • 49
  • 1
  • 5
2
votes
0 answers

Draw detailed git graphs with mermaid - layout

I am trying to draw git diagrams with mermaid, using flowchart as an alternative to mermaid gitgraph-diagrams. The main reason is to show the branches and HEAD pointers on the graph. As example: flowchart RL; 3((9817e0))-->1((e137e9)); …
Joaquín
  • 106
  • 1
  • 7
2
votes
2 answers

Is there a way to use a local image file in a mermaid flowchart

I am interested in knowing if it is theoretically possible to embed a local image onto a mermaid chart. I am trying to do this with mermaid_cli since it is installed locally on my machine and it should therefore in theory be easier to access local…
N Strahl
  • 75
  • 8
2
votes
1 answer

Adjust mermaid diagram white space in Azure devops wiki

Goal: Work flow diagram displays underneath the header text with standard spacing Actual Results: Work flow diagram displays underneath header with a standardized amount of white space Errors: No errors messages Troubleshooting Steps: I attempted…
Ryan Lake
  • 23
  • 4
2
votes
1 answer

How to add an internal reference/link to a mermaid node description?

Following this answerI can add external link to mermaid graph like this graph TD; A-->B[google]; A-->C; C-->B; click B "https://google.com"; I can add an internal reference (to main.md file) to markdown like this [[main]] How do I…
klm123
  • 12,105
  • 14
  • 57
  • 95
2
votes
2 answers

mermaid not rendered in Jekyll page

I try to setup mermaid in a Jekyll page. In Jekyll I am using the theme Just the Docs. Basically I followed this post to add mermaid in my page template. And it results in: Diagram I used is:
graph TD A[Client]…
Greenfly77
  • 165
  • 2
  • 8
2
votes
2 answers

Why when I open an svg file in Inkscape, info is blacked out?

So I'm creating flowcharts using the Mermaid Live Editor which is a diagram creating program that allows me to export my flowcharts are svg files. The problem arises when I open the svg file in Inkscape to make some edits to the vector file, all the…
2
votes
0 answers

Mermaid flowchart layout

I have the following Mermaid code that renders the following diagram: flowchart LR; classDef socket fill:#f9f,stroke:#333,stroke-width:4px; subgraph host1[Client Host] subgraph "Client Process (Browser)" app1[Browser…
Ron Inbar
  • 2,044
  • 1
  • 16
  • 26
2
votes
3 answers

Render Mermaid diagram with Blazor WebAssembly App in .NET 5.0

I have followed the guide for Deploying Mermaid here: https://mermaid-js.github.io/mermaid/#/?id=deploying-mermaid Using it on codepen works directly: https://codepen.io/Ogglas/pen/MWjWNxR mermaid.initialize({ startOnLoad:true });
Ogglas
  • 62,132
  • 37
  • 328
  • 418
2
votes
2 answers

Change font of text on links in graph Mermaid

I want to change the font (color, size...) of the text on the link (Change_font), but I am not able to figure out. Can someone help?
Beast_Levi
  • 66
  • 1
  • 5