github / github/app

Mermaid in markdown breaks editor

オープン
#1,260 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
Bugs
主要言語
言語のデータがありません
スター
2.1k
フォーク
153
PR マージ指標
30日以内にマージされた PR はありません

説明

### 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_

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

より長い Mermaid コードブロックを含む Markdown ファイルを開き、キャンバスまたはプレビューの表示が開くのを待ってから編集を試み、問題を再現します。編集、プレビュー、コードモード間の遷移を追跡します。完了条件は、Markdown が編集可能なままで、ビューを切り替えても変更がブロックされなくなることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
markdown
領域
frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。