2019-11-28 13:01:24 +01:00
|
|
|
# Advanced n00b mermaid (Coming soon..)
|
2019-11-28 12:44:37 +01:00
|
|
|
|
2019-11-28 12:43:55 +01:00
|
|
|
## splitting mermaid code from html
|
2022-09-05 01:00:47 +05:30
|
|
|
|
2019-11-28 12:43:55 +01:00
|
|
|
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>
|
|
|
|
```
|
2022-09-05 01:00:47 +05:30
|
|
|
|
2019-11-28 12:43:55 +01:00
|
|
|
The actual mermaid file could for example look like this:
|
|
|
|
|
|
|
|
```
|
|
|
|
mermaid content...
|
|
|
|
```
|
2022-09-05 01:00:47 +05:30
|
|
|
|
2019-11-28 12:43:55 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
## mermaid configuration options
|
|
|
|
|
|
|
|
...
|