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
+2 -2
View File
@@ -34,7 +34,7 @@ Miseratus fonte Ditis conubia.
# Buttons
```tpl
{{</* button relref="/" */>}}Get Home{{</* /button */>}}
{{</* button relref="/" [class="..."] */>}}Get Home{{</* /button */>}}
{{</* button href="https://github.com/alex-shpak/hugo-book" */>}}Contribute{{</* /button */>}}
```
@@ -134,7 +134,7 @@ Miseratus fonte Ditis conubia.
{{< columns >}}
```tpl
{{</* mermaid */>}}
{{</* mermaid [class="text-center"]*/>}}
sequenceDiagram
Alice->>Bob: Hello Bob, how are you?
alt is sick