Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] markdown Mermaid 无法使用 #5374

Closed
hejianjun opened this issue Sep 6, 2024 · 1 comment
Closed

[Bug] markdown Mermaid 无法使用 #5374

hejianjun opened this issue Sep 6, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@hejianjun
Copy link

hejianjun commented Sep 6, 2024

📦 部署方式

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

@hejianjun hejianjun added the bug Something isn't working label Sep 6, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] markdown Mermaid cannot be used

📦 Deployment method

Docker

📌 Software version

v2.14.2

💻 System environment

Windows

📌 System version

11 23H2

🌐 Browser

Chrome

📌 Browser version

128.0.6613.120

🐛 Problem description

After adding the folding function to markdown, it seems that the code of ReactMarkdown was customized and some content was missed. class and the like caused Mermaid to fail to render.

📷 Steps to reproduce

enter
`
#Example chart

```mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```
`;
Unable to render

🚦 Expected results

No response

📝 Supplementary information

No response

lloydzhou added a commit that referenced this issue Sep 7, 2024
hotfix Mermaid can not render. close #5374
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants