Skip to content

Malformed mermaid diagram results in incorrect chart #1664

@rccarlson

Description

@rccarlson

Describe the bug
An element titled "-" will be created as "Unsupported markdown list" in the chart

To Reproduce
Link to Live Editor:
https://mermaid.live/edit#pako:eNo9jUuOwjAQRK-Cah0i5-OY8RZuMKyQN63YJGiwjTy2IES5Ow5iplfdT6-6ZvReG0icr_7ejxTi5nhQbpNnqxwKWBMsXXQ25hUrxNFYoyDzqin8KCi3ZI9S9N-T6yFjSKZA8GkYIc90_c1XummK5nChIZD9pzdyJ-_tX2QIa88nbpw2Ye-Ti5At428ZcsYDsmpK1tWNEE1Xs5aztsCUKa9K9iUqVjPRiobvuqXA8_2elTvBlxfRwUfY

Steps to reproduce the behavior:

flowchart TD
    -
flowchart TD
    -
Loading

Expected behavior
Expected something more like how it appears in Typora:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions