DEV Community

winter-loo
winter-loo

Posted on

Why does mermaid be not supported in markdown now?

graph LR
    A[开始] --> B[任务1]
    B --> C{状态:已完成}
    C --> D{状态:进行中}
    D --> E{状态:未完成}
    E --> F{状态:已拒绝}
    F --> G{状态:已解决}
    G --> H[结束]
Enter fullscreen mode Exit fullscreen mode

Top comments (1)

Collapse
 
johannes_k_rexx profile image
johnblommers • Edited

Because the character in your syntax should be a proper colon character : . Change its occurance in each statement and your Mermaid will render correctly.

graph LR
    A[开始] --> B[任务1]
    B --> C{状态:已完成}
    C --> D{状态:进行中}
    D --> E{状态:未完成}
    E --> F{状态:已拒绝}
    F --> G{状态:已解决}
    G --> H[结束]
Enter fullscreen mode Exit fullscreen mode

Not in this forum, however. But it works fine in Typora and other places where it's supported.