From 56e328f31f908f73db3511a78b1ea43b4872b42c Mon Sep 17 00:00:00 2001 From: Neil Cuzon <58763315+NeilCuzon@users.noreply.github.com> Date: Sat, 18 Jul 2020 20:20:48 -0700 Subject: [PATCH] Update usage.md --- docs/usage.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/usage.md b/docs/usage.md index 49433be93..945fd101d 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -35,8 +35,8 @@ locate the graphs on the page and transform them to svg files. ### Include mermaid on your web page: ```html - - + + ``` Further down on your page mermaid will look for tags with `class="mermaid"`. From these tags mermaid will try to @@ -47,7 +47,10 @@ read the chart definiton and replace it with the svg chart. ```html
- CHART DEFINITION GOES HERE + graph LR + A --- B + B-->C[fa:fa-ban forbidden] + B-->D(fa:fa-spinner);
``` @@ -76,12 +79,12 @@ Would end up like this: B-->C[fa:fa-ban forbidden] B-->D(fa:fa-spinner); - - + + ``` -An id attribute is also added to mermaid tags without one. ## Simple full example: +## Try it out, save this code as HTML and load it. ### To enable click event and tags in nodes