mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 15:36:48 -04:00
Correct the sample code of mermaid (#2119)
This commit is contained in:
parent
a4818d99b2
commit
a54bf4cd0c
@ -47,9 +47,9 @@ Will be rendered as:
|
|||||||
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`:
|
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
|
```go-html-template
|
||||||
<div class="mermaid">
|
<pre class="mermaid">
|
||||||
{{- .Inner | safeHTML }}
|
{{- .Inner | safeHTML }}
|
||||||
</div>
|
</pre>
|
||||||
{{ .Page.Store.Set "hasMermaid" true }}
|
{{ .Page.Store.Set "hasMermaid" true }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user