MarkEdit icon indicating copy to clipboard operation
MarkEdit copied to clipboard

[Bug] mermaid graph display error using preview extension

Open SamuelXiao opened this issue 1 year ago • 1 comments

The mermaid graph code is

graph TD
    subgraph 用户端 (User Client)
        A[用户通过微信访问]
    end
    
    subgraph 微信小程序 (Frontend)
        B[小程序UI界面]
    end
    
    subgraph 微信云开发 (Backend)
        C[云函数网关]
        D[用户认证函数]
        E[图片上传处理函数]
        F[AI任务调用函数]
        G[数据读写函数]
        H[云数据库]
        I[云存储]
    end

    subgraph 阿里云 (External Service)
        J[百炼AI API]
    end

    A --> B;
    B -- HTTPS请求 --> C;
    C --> D;
    C --> E;
    C --> F;
    C --> G;
    E -- 存取图片 --> I;
    F -- 安全API调用 --> J;
    G -- 读写数据 --> H;

It displayed: Image

SamuelXiao avatar Aug 26 '25 01:08 SamuelXiao

I found the mermaid code is a little wrong. The correct code is: graph TD subgraph 用户端 User Client A[用户通过微信访问] end

subgraph 微信小程序  Frontend
    B[小程序UI界面]
end

subgraph 微信云开发 Backend
    C[云函数网关]
    D[用户认证函数]
    E[图片上传处理函数]
    F[AI任务调用函数]
    G[数据读写函数]
    H[云数据库]
    I[云存储]
end

subgraph 阿里云 External Service
    J[百炼AI API]
end

A --> B;
B -- HTTPS请求 --> C;
C --> D;
C --> E;
C --> F;
C --> G;
E -- 存取图片 --> I;
F -- 安全API调用 --> J;
G -- 读写数据 --> H;

SamuelXiao avatar Aug 26 '25 02:08 SamuelXiao