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
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
{"Target":"book.min.40a7a4a197e0c73ece96b2afec0d34ad394563de6f97699dd68b042cd2f5ae9e.css","MediaType":"text/css","Data":{"Integrity":"sha256-QKekoZfgxz7OlrKv7A00rTlFY95vl2md1osELNL1rp4="}}
{"Target":"book.min.1f05d81b275a862f44a849039ab95c032a03abf4aebe5aeff5367876fc7b68ab.css","MediaType":"text/css","Data":{"Integrity":"sha256-HwXYGydahi9EqEkDmrlcAyoDq/Suvlrv9TZ4dvx7aKs="}}