Skip to content

Sequence Diagrams don't support "Title:" #246

Closed
@deftdawg

Description

@deftdawg

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.

sequenceDiagram
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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions