add optional mermaid shotcode
This commit is contained in:
parent
e151dad461
commit
98ee41b0fb
3 changed files with 7 additions and 0 deletions
2
layouts/shortcodes/mermaid.html
Normal file
2
layouts/shortcodes/mermaid.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||
<div class="mermaid" align="{{ if .Get "align" }}{{ .Get "align" }}{{ else }}center{{ end }}">{{ safeHTML .Inner }}</div>
|
Loading…
Add table
Add a link
Reference in a new issue