github / github/app

Mermaid in markdown breaks editor

Đang mở
#1,260 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Bugs
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
2.1k
Fork
153
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Short summary

When there is a longer mermaid entry in a markdown document, the markdown preview does no longer allow editing.

### Affected version or release

_No response_

### Installation context

_No response_

### What happened?

When working with Markdown files that include Mermaid diagrams, the editor switches to the canvas/preview experience. At that point, the file becomes effectively uneditable — the editor blocks and I can no longer make changes.
The preview/canvas view renders, but the editing experience breaks. I have to switch to code mode (or “agent/go-to-code mode”) to regain the ability to edit the file.

### Steps to reproduce

Open a Markdown file
Add or include Mermaid code block (e.g. ```mermaid)
Let the editor render/open the canvas/preview experience
Try to edit the file in the editor

### Expected behavior

I can continue editing the Markdown file normally
Preview/canvas view does not block editing
Switching between edit and preview works seamlessly

### Additional context

_No response_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Reproduce the issue by opening a Markdown file with a longer Mermaid code block, then letting the canvas or preview experience open and attempting to edit. Trace the transition between edit, preview, and code mode; done means Markdown remains editable and switching between views no longer blocks changes.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
markdown
Lĩnh vực
frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
55/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.