Add custom class support for mermaid and button shortcodes

This commit is contained in:
Alex Shpak
2019-06-11 13:40:50 +02:00
parent 2047968370
commit c9d979514c
7 changed files with 16 additions and 6 deletions
+3 -1
View File
@@ -7,4 +7,6 @@
{{ with .Get "relref" }}
{{ $ref = relref $ . }}
{{ end }}
<a {{ with $ref }} href="{{.}}" {{ end }} {{ with $target }} target="{{.}}" {{ end }} class="book-btn">{{ $.Inner }}</a>
<a {{ with $ref }} href="{{.}}" {{ end }} {{ with $target }} target="{{.}}" {{ end }} class="book-btn{{ with .Get "class" }} {{ . }}{{ end }}">
{{ $.Inner }}
</a>
+1 -1
View File
@@ -4,6 +4,6 @@
{{ .Page.Scratch.Set "mermaid" true }}
{{ end }}
<p class="mermaid">
<p class="mermaid{{ with .Get "class" }} {{ . }}{{ end }}">
{{ .Inner }}
</p>