mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-02 22:52:51 +02:00
Merge commit '87de22d7464e239c775fbd48ebce1665d5b1e80d'
This commit is contained in:
@@ -12,7 +12,7 @@ weight: 50
|
||||
---
|
||||
{{< new-in "0.93.0" >}}
|
||||
|
||||
## GoAT Diagrams (Ascii)
|
||||
## GoAT diagrams (Ascii)
|
||||
|
||||
Hugo supports [GoAT](https://github.com/bep/goat) natively. This means that this code block:
|
||||
|
||||
@@ -42,14 +42,14 @@ Will be rendered as:
|
||||
1 2 3 4 1 2 3 4 1 2 3 4 '--- 4 '-- 4 \ 4
|
||||
```
|
||||
|
||||
## Mermaid Diagrams
|
||||
## Mermaid diagrams
|
||||
|
||||
Hugo currently does not provide default templates for Mermaid diagrams. But you can easily add your own. One way to do it would be to create `layouts/_default/_markup/render-codeblock-mermaid.html`:
|
||||
|
||||
```go-html-template
|
||||
<div class="mermaid">
|
||||
<pre class="mermaid">
|
||||
{{- .Inner | safeHTML }}
|
||||
</div>
|
||||
</pre>
|
||||
{{ .Page.Store.Set "hasMermaid" true }}
|
||||
```
|
||||
|
||||
@@ -66,7 +66,7 @@ And then include this snippet at the bottom of the content template (**Note**: b
|
||||
|
||||
With that you can use the `mermaid` language in Markdown code blocks:
|
||||
|
||||
````
|
||||
````text
|
||||
```mermaid
|
||||
sequenceDiagram
|
||||
participant Alice
|
||||
@@ -82,7 +82,7 @@ sequenceDiagram
|
||||
```
|
||||
````
|
||||
|
||||
## Goat Ascii Diagram Examples
|
||||
## Goat ASCII diagram examples
|
||||
|
||||
### Graphics
|
||||
|
||||
@@ -166,7 +166,7 @@ Created from <https://arthursonzogni.com/Diagon/#Tree>
|
||||
```
|
||||
|
||||
|
||||
### Sequence Diagram
|
||||
### Sequence diagram
|
||||
|
||||
<https://arthursonzogni.com/Diagon/#Sequence>
|
||||
|
||||
|
Reference in New Issue
Block a user