mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-06 07:39:48 +02:00
Support leading comments for sequenceDiagrams
This commit is contained in:
@@ -64,7 +64,9 @@
|
|||||||
%% /* language grammar */
|
%% /* language grammar */
|
||||||
|
|
||||||
start
|
start
|
||||||
: SD document { yy.apply($2);return $2; }
|
: SPACE start
|
||||||
|
| NL start
|
||||||
|
| SD document { yy.apply($2);return $2; }
|
||||||
;
|
;
|
||||||
|
|
||||||
document
|
document
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
B -->C["#9829; ;^; #60;"]
|
B -->C["#9829; ;^; #60;"]
|
||||||
</div>
|
</div>
|
||||||
<div class="mermaid" id="i211">
|
<div class="mermaid" id="i211">
|
||||||
|
%% Example diagram
|
||||||
sequenceDiagram
|
sequenceDiagram
|
||||||
Ali#45;ce->>John: Hello John, how are you? #60;
|
Ali#45;ce->>John: Hello John, how are you? #60;
|
||||||
John-->>Alice: Great!#quot;
|
John-->>Alice: Great!#quot;
|
||||||
|
Reference in New Issue
Block a user