Merge pull request #312 from ashsearle/master

Support leading comments for sequenceDiagrams
This commit is contained in:
Knut Sveidqvist 2016-03-04 07:16:02 +01:00
commit 6c621f243d
2 changed files with 4 additions and 2 deletions

View File

@ -64,7 +64,9 @@
%% /* language grammar */
start
: SD document { yy.apply($2);return $2; }
: SPACE start
| NL start
| SD document { yy.apply($2);return $2; }
;
document

View File

@ -22,7 +22,7 @@
B -->C["#9829; ;^; #60;"]
</div>
<div class="mermaid" id="i211">
%% Example diagram
sequenceDiagram
Ali#45;ce->>John: Hello John, how are you? #60;
John-->>Alice: Great!#quot;