Skip to content

Commit

Permalink
Update sample.md so that mermaid diagrams could be displayed properly (
Browse files Browse the repository at this point in the history
…#1264)

In the original `sample.md` file, a <div> with class sets to mermaid is used to enclose the mermaid code. However, this does not properly display the mermaid diagram. After changing it to ```mermaid ```, the expected behavior could be observed.
  • Loading branch information
ttzytt authored Oct 28, 2024
1 parent ef2bc46 commit 1ad0ad5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sample.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Merged | Cell 1

---

<div class="mermaid">
```mermaid
sequenceDiagram
participant Alice
participant Bob
Expand All @@ -78,19 +78,19 @@ sequenceDiagram
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
</div>
```

---

<div class="mermaid">
```mermaid
graph LR;
A(AAAA)==> B(B node);
B==> C(SEE SEE);
class A diag-a-styles;
class B diag-b-styles
class C diag-c-styles;
</div>
```

---

Expand Down

0 comments on commit 1ad0ad5

Please sign in to comment.