-
Notifications
You must be signed in to change notification settings - Fork 74
/
test.md
129 lines (101 loc) · 2.25 KB
/
test.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
## basic png with width override
with a code block
```{.mermaid format=png loc=img}
sequenceDiagram
Note right of John: png, folder img
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
```
## Nested folder
```{.mermaid format=png loc=img/child alt="should show up"}
sequenceDiagram
Note right of John: png, folder img/child
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
```
## fig ref
```{.mermaid #fig:ref caption="Caption" format=png loc=img/child alt="should have id of fig:ref"}
If an id starts with `fig:`, then `title` attribute is set to `fig:`
sequenceDiagram
Note right of John: png with id as attr
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
```
With theme specified
---------------------
**The following two diagram themes don't work because mermaid generates the svg with the same id and the last set of styles applied wins.**
```{.mermaid format=svg }
---
config:
theme: dark
deterministicIds: true
deterministicIdSeed: first
title: first
---
sequenceDiagram
Note right of John: SVG output with dark theme
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
```
```{.mermaid #item2 width=100 format=svg }
---
config:
theme: forest
deterministicIds: true
deterministicIdSeed: second
title: first
---
sequenceDiagram
Note right of John: SVG output with forest theme
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
```
Bug #37
-------------------
```{.mermaid}
graph LR;
A-->B;
click A callback "Tooltip for a callback"
click B "http://www.github.com" "This is a tooltip for a link"
```
## Bug 81
```{.mermaid theme=forest}
gitGraph
commit
commit
branch develop
checkout develop
commit
commit
checkout main
merge develop
commit
commit
```
```{.mermaid theme=forest}
gitGraph:
commit
commit
branch feature/x
checkout feature/x
commit
commit
checkout main
merge feature/x
branch feature/y
checkout feature/y
commit
commit
checkout main
merge feature/y
branch release/x
checkout release/x
commit tag: "X.X.X-qualifier.X"
checkout main
branch feature/z
checkout feature/z
commit
commit
checkout main
merge feature/z
```