Add mermaid support (#857)

Closes #825


Co-authored-by: Matt Wang <matt@matthewwang.me>
This commit is contained in:
nascosto
2022-07-12 16:16:18 -06:00
committed by GitHub
parent 3ca57e3b0d
commit 6907f06977
7 changed files with 137 additions and 0 deletions

View File

@@ -86,3 +86,21 @@ To demonstrate front end code, sometimes it's useful to show a rendered example
[Link button](http://example.com/){: .btn }
```
{% endhighlight %}
---
## Mermaid diagram code blocks
[Mermaid](https://mermaid-js.github.io/mermaid/) allows you to add diagrams and visualizations using Markdown code blocks. You can turn on support for mermaid by adding `mermaid_enabled: true` to your \_config.yml.
The markdown for a simple flowchart example might look like the following:
{% highlight markdown %}
```mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```
{% endhighlight %}