Skip to content

Commit

Permalink
Minor Mermaid syntax clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffreymcgill committed Jul 17, 2023
1 parent 56c1eb6 commit 5abc8ec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/mermaid.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ graph LR

## Directives

Mermaid [directives](https://mermaid-js.github.io/mermaid/#/directives) can be configured using the recommended `%%{init: { } }%%` syntax as the first line just inside the `` ```mermaid `` block.
Mermaid [directives](https://mermaid-js.github.io/mermaid/#/directives) can be configured using the recommended `%%{init: { }}%%` syntax as the first line just inside the `` ```mermaid `` block.

From the Mermaid docs:

Expand All @@ -46,7 +46,7 @@ The following sample demonstrates applying a `theme` to the diagram:

~~~
```mermaid
%%{init: { 'theme': 'forest' } }%%
%%{init: { 'theme': 'forest' }}%%
graph LR
A[Hard edge] -->|Link text| B(Round edge)
B --> C{Decision}
Expand All @@ -56,7 +56,7 @@ graph LR
~~~

```mermaid
%%{init: { 'logLevel': 'debug', 'theme': 'forest' } }%%
%%{init: { 'logLevel': 'debug', 'theme': 'forest' }}%%
graph LR
A[Hard edge] -->|Link text| B(Round edge)
B --> C{Decision}
Expand All @@ -70,7 +70,7 @@ In order to draw a mermaid code block with syntax highlighting instead of render

~~~
```mermaid-js
%%{init: { 'theme': 'forest' } }%%
%%{init: { 'theme': 'forest' }}%%
graph LR
A[Hard edge] -->|Link text| B(Round edge)
B --> C{Decision}
Expand All @@ -80,7 +80,7 @@ graph LR
~~~

```mermaid-js
%%{init: { 'logLevel': 'debug', 'theme': 'forest' } }%%
%%{init: { 'logLevel': 'debug', 'theme': 'forest' }}%%
graph LR
A[Hard edge] -->|Link text| B(Round edge)
B --> C{Decision}
Expand Down

0 comments on commit 5abc8ec

Please sign in to comment.