Skip to content

[Bug] markdown Mermaid 无法使用 #5374

@hejianjun

Description

@hejianjun

📦 部署方式

Docker

📌 软件版本

v2.14.2

💻 系统环境

Windows

📌 系统版本

11 23H2

🌐 浏览器

Chrome

📌 浏览器版本

128.0.6613.120

🐛 问题描述

markdown添加折叠功能之后好像把ReactMarkdown的code自定义后漏传了一些内容,class什么之类的导致Mermaid无法渲染

📷 复现步骤

输入

示例图表

```mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```

无法渲染

🚦 期望结果

graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
Loading

📝 补充信息

No response

Metadata

Metadata

Assignees

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