Mermaid in markdown breaks editor
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 2.1k
- Fork
- 153
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### 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_
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- markdown
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 55/100