Skip to content

Commit

Permalink
Update n00b-gettingStarted.md
Browse files Browse the repository at this point in the history
  • Loading branch information
erelling committed Nov 8, 2019
1 parent 3d79331 commit 7319d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/n00b-gettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Save this to a html file and fetch it with a browser from the web server (or jus

---

**Three additional comments from Knut, the 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, the documentation still frequently reflects the old way which still works.

- We initialize the mermaid rendering with `mermaid.initialize()` directly in the html code. In principle this could be done through placing `mermaid.initialize()` inside of `mermaid.min.js`. We would then eliminate the need for this explicit line in the html. However, there are use cases where we do want to separate the two steps. Sometimes we want full control over when we start looking for `<div>`tags inside the web page with `mermaid.initialize()`, for example when we think that all `<div>` tags may not have loaded when `mermaid.min.js` runs.
Expand Down

0 comments on commit 7319d89

Please sign in to comment.