Mermaid: Sequence Diagrams don't support "Title:"

Created on 5 Nov 2015  路  3Comments  路  Source: mermaid-js/mermaid

Js-sequence supports "Title" as a label that sits above a diagram, bring my diagrams over that were done in js-sequence results in syntax error.

Here is the second example taken from the js-sequence demo page with the Title tag present.

Title: Here is a title
A->B: Normal line
B-->C: Dashed line
C->>D: Open arrow
D-->>A: Dashed open arrow

Gives an Invalid Syntax
http://knsv.github.io/mermaid/live_editor/#/edit/c2VxdWVuY2VEaWFncmFtClRpdGxlOiBIZXJlIGlzIGEgdGl0bGUKQS0-QjogTm9ybWFsIGxpbmUKQi0tPkM6IERhc2hlZCBsaW5lCkMtPj5EOiBPcGVuIGFycm93CkQtLT4-QTogRGFzaGVkIG9wZW4gYXJyb3c

Running it in mermaid-preview on Atom gives this, which may be more helpful

Parse error on line 2:
...equenceDiagramTitle: Here is a TitleAn ----------------------^ Expecting 'SPACE', got 'TXT'
Inactive

Most helpful comment

Can be closed, it is fixed.

All 3 comments

Can be closed, it is fixed.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Given how long ago this issue's activity died out, I'm closing it.
This allows us to maintain a fresh list of issues the community is interested in.

Feel free to create a new issue, if necessary.

Was this page helpful?
0 / 5 - 0 ratings