From 2ab6982425f27511cf5335f215f60a0cb5bc2898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 13 Sep 2020 12:11:31 +0200 Subject: [PATCH] Bring back mermaid code fences in docs #6 --- exampleSite/content/shortcodes/mermaid.en.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/exampleSite/content/shortcodes/mermaid.en.md b/exampleSite/content/shortcodes/mermaid.en.md index 66114813c8..d169452dfd 100644 --- a/exampleSite/content/shortcodes/mermaid.en.md +++ b/exampleSite/content/shortcodes/mermaid.en.md @@ -27,6 +27,26 @@ graph LR; C -->|Two| E[Result two] {{}} +or you can use this alternative syntax: + + ```mermaid + graph LR; + A[Hard edge] -->|Link text| B(Round edge) + B --> C{Decision} + C -->|One| D[Result one] + C -->|Two| E[Result two] + ``` + +renders as + +```mermaid +graph LR; + A[Hard edge] -->|Link text| B(Round edge) + B --> C{Decision} + C -->|One| D[Result one] + C -->|Two| E[Result two] +``` + ## Sequence example {{}}