这是indexloc提供的服务,不要输入任何密码
Skip to content

mermaid chart rendering error #1048

@xiongfeng321

Description

@xiongfeng321

Image

Hope to solve the rendering problem and add beautiful styles

https://x.com/Cydiar404/status/1940079475468984461

flowchart TD
%% 样式节点示例
A((开始节点)) --> B[处理步骤节点]
B --> C{决策节点}
C -->|是| D[(数据存储节点)]
C -->|否| E[输出节点]
D --> F[错误处理节点]
E --> G((结束节点))

%% 通用样式定义
classDef startEndStyle fill:#e8f5e8,stroke:#4caf50,stroke-width:3px,color:#000
classDef processStyle fill:#e3f2fd,stroke:#2196f3,stroke-width:2px,color:#000
classDef decisionStyle fill:#fff3e0,stroke:#ff9800,stroke-width:2px,color:#000
classDef dataStyle fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px,color:#000
classDef outputStyle fill:#fce4ec,stroke:#e91e63,stroke-width:2px,color:#000
classDef errorStyle fill:#ffebee,stroke:#f44336,stroke-width:2px,color:#000

%% 应用样式到示例节点
class A,G startEndStyle
class B processStyle
class C decisionStyle
class D dataStyle
class E outputStyle
class F errorStyle

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions