mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 22:17:28 +00:00
Correct the sample code of mermaid (#2119)
This commit is contained in:
1 parent
a4818d99b2
commit
a54bf4cd0c
1 file changed
+2
-2
@@ -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 }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user