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