aboutsummaryrefslogtreecommitdiff
path: root/layouts/shortcodes/mermaid.html
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2019-06-11 13:40:50 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2019-06-11 13:41:08 +0200
commitc9d979514c009e8b28d99cff2614b92019ccd5c8 (patch)
tree0d32b30207415e2182926724e9b37de4bebdee4a /layouts/shortcodes/mermaid.html
parent2047968370a4bc61037e0d73f2ce76acb1d7774a (diff)
Add custom class support for mermaid and button shortcodes
Diffstat (limited to 'layouts/shortcodes/mermaid.html')
-rw-r--r--layouts/shortcodes/mermaid.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/shortcodes/mermaid.html b/layouts/shortcodes/mermaid.html
index 66eb4a6..f569bc4 100644
--- a/layouts/shortcodes/mermaid.html
+++ b/layouts/shortcodes/mermaid.html
@@ -4,6 +4,6 @@
{{ .Page.Scratch.Set "mermaid" true }}
{{ end }}
-<p class="mermaid">
+<p class="mermaid{{ with .Get "class" }} {{ . }}{{ end }}">
{{ .Inner }}
</p>