diff options
Diffstat (limited to 'exampleSite/content/home/shortcodes/mermaid.md')
-rw-r--r-- | exampleSite/content/home/shortcodes/mermaid.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/exampleSite/content/home/shortcodes/mermaid.md b/exampleSite/content/home/shortcodes/mermaid.md new file mode 100644 index 0000000..b9c04ac --- /dev/null +++ b/exampleSite/content/home/shortcodes/mermaid.md @@ -0,0 +1,27 @@ ++++ +weight = 32 ++++ + +{{< slide id=mermaid-shortcode >}} + +# Mermaid diagrams + +Use the `mermaid` shortcode if you need to enable reveal-js highligting module +(`codeFences = false`). Otherwize, when `codeFences = true`, ` ```mermaid ``` ` codeblocks +are also supported. [More info](hugo-hl-example/#/5). + +```code +{{</* mermaid */>}} +graph LR + A --> B + B --> C +{{</* /mermaid */>}} +``` + +results in: + +{{< mermaid >}} +graph LR + A --> B + B --> C +{{< /mermaid >}} |