graph TD
A[Hard] -->|Text| B(Round)
B --> C{Decision}
C -->|One| D[Result 1]
C -->|Two| E[Result 2]
我的示例代码是从示例中复制过来的, 为什么官方文档中的示例图像正常显示,而我的却不行
第二个样例
这是官网的示例代码
1 2 3 4 5 6 7 8 9 10
{%mermaidsequenceDiagram%} Alice->>John:HelloJohn,howareyou? loopHealthcheck John->>John:Fightagainsthypochondria end Note right of John:Rationalthoughts! John-->>Alice:Great! John->>Bob:Howaboutyou? Bob-->>John:Jollygood! {%endmermaid%}
这是我的博客中显示的样式
sequenceDiagram
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!