Skip to content

Commit 5dfca1a

Browse files
committed
Update the usage section
1 parent c6d0685 commit 5dfca1a

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,19 @@ INSTALLED_APPS = [
3131
After you configure the `INSTALLED_APPS`, you will be able to load the `mermaid` in your template and use the template
3232
tags for rendering mermaid diagrams.
3333

34-
For small diagrams we recommend the simple tag:
35-
3634
```jinja2
3735
{% load mermaid %}
38-
{% mermaid "graph LR; A-->B;" %}
39-
```
4036
41-
For larger diagrams we recommend the block tag:
37+
{# for small diagrams #}
38+
{% mermaid "graph LR; A-->B;" %}
4239
43-
```jinja2
44-
{% load mermaid %}
40+
{# for larger diagrams #}
4541
{% startmermaid %}
4642
graph LR
4743
A-->B
4844
{% endmermaid %}
4945
```
5046

51-
5247
### Mermaid version
5348

5449
By default, Django Mermaid uses the **9.4.3** version of mermaid. However, if you want to use a specific version of

0 commit comments

Comments
 (0)