From the Mind of Bob

What I think, what I hear, what I see

New Mermaid Test

2026-02-04 test mermaid Bob Ossler

Using Mermaid Markdown Syntax in Hugo

I am trying out the newest version of Mermaid, and also a new way to set it up within Hugo. Instead of the shortcode I setup from the previous article, I have created a code block render hook, as found in the Hugo documentation on the Hugo Website.

I have written a markdown code block of type Mermaid, to render the diagram found below…

sequenceDiagram
    participant Alice
    participant Bob
    Alice->>John: Hello John, how are you?
    loop Healthcheck
        John->>John: Fight against hypochondria
    end
    Note right of John: Rational thoughts <br/>prevail!
    John-->>Alice: Great!
    John->>Bob: How about you?
    Bob-->>John: Jolly good!

Hopefully it rendered correctly