Skip to content

Some node names break the diagrams #1444

Closed

Description

@italomaia-bk

Describe the bug
Tried to have a flowchart node called "end". It breaks flowchart.

To Reproduce

graph TD
  start --> state
  state --> end

Expected behavior
Should produce diagram

Desktop (please complete the following information):

  • Testted on vscode markdown preview

Activity

  1. GDFaber commented on Jun 5, 2020

    @GDFaber
    Contributor

    Hi @italomaia-bk, this is due to the markup language approach which mermaid is built upon. But you can give the node another id and still use "end" for its caption text: example in the live editor.

  2. italomaia-bk commented on Jun 5, 2020

    @italomaia-bk
    Author

    Yeah, I'm using this workaround.
    If this limitation is expected and not documented, we might still have an issue.

  3. GDFaber commented on Jun 5, 2020

    @GDFaber
    Contributor

    It should be helpful to have a list in the documentation which includes all the words reserved for syntax for every diagram type.

  4. NeilCuzon commented on Jun 21, 2020

    @NeilCuzon
    Member

    I submitted a PR for this, but I found that "End" also breaks sequence diagrams.

  5. locked and limited conversation to collaborators on Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions