Diagrams

There is built in support for multiple types of diagrams.

GoAT

Hugo supports GoAT natively. This means that this code block:

\```goat
      .               .                .               .--- 1          .-- 1     / 1
     / \              |                |           .---+            .-+         +
    /   \         .---+---.         .--+--.        |   '--- 2      |   '-- 2   / \ 2
   +     +        |       |        |       |    ---+            ---+          +
  / \   / \     .-+-.   .-+-.     .+.     .+.      |   .--- 3      |   .-- 3   \ / 3
 /   \ /   \    |   |   |   |    |   |   |   |     '---+            '-+         +
 1   2 3   4    1   2   3   4    1   2   3   4         '--- 4          '-- 4     \ 4

\```

Will be rendered as:

123412341234123412341234

See more:

Mermaid

You can also render more complex diagrams using mermaid.

{{< mermaid caption="And you can add a caption" >}}
flowchart TD
    Start --> Working
    Working --> Stop
{{< /mermaid >}}
flowchart TD Start --> Working Working --> Stop
And you can add a caption
{{< mermaid caption="And you can add a caption" >}}
sequenceDiagram
    Alice->>John: Hello John, how are you?
    John-->>Alice: Great!
    Alice-)John: See you later!
{{< /mermaid >}}
sequenceDiagram Alice->>John: Hello John, how are you? John-->>Alice: Great! Alice-)John: See you later!
And you can add a caption