mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Drafting advanced usage
This commit is contained in:
parent
91650fb052
commit
94577316f9
@ -141,22 +141,6 @@ Save this to a html file and fetch it with a browser from the web server (or jus
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
A more condensed html code can be achieved by embedding the mermaid code in its own .js file, which is referenced like so:
|
|
||||||
|
|
||||||
```
|
|
||||||
stuff stuff
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
```
|
|
||||||
The actual mermaid file could for example look like this:
|
|
||||||
|
|
||||||
```
|
|
||||||
mermaid content...
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Three additional comments from Knut Sveidqvist, creator of mermaid:**
|
**Three additional comments from Knut Sveidqvist, creator of mermaid:**
|
||||||
- In early versions of mermaid, the `<script src>` tag was invoked in the `<head>` part of the web page. Nowdays we can place it directly in `<body>` as seen above. However, older parts of the documentation frequently reflects the previous way which still works.
|
- In early versions of mermaid, the `<script src>` tag was invoked in the `<head>` part of the web page. Nowdays we can place it directly in `<body>` as seen above. However, older parts of the documentation frequently reflects the previous way which still works.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user