Skip to content
kd
17 Feb 2022
Back to blog

Using MermaidJS with Pandoc

GitHub recently announced support for MermaidJS. I thought it would be nice to integrate it as part of my blog using Pandoc lua filters. So the following:

```mermaid
sequenceDiagram
    participant Alice
    participant Bob
    Alice->>John: Hello John, how are you?
    Note right of John: Rational thoughts <br/>prevail!
    John-->>Alice: Great!
    John->>Bob: How about you?
    Bob-->>John: Jolly good!
```

would be rendered as:

JohnBobAliceJohnBobAliceRational thoughts prevail!Hello John, how are you?Great!How about you?Jolly good!

Share this post on:

Using Tikz with Pandoc
Reinstall Xcode command line developer tools