Mermaid in markdown breaks editor
- Langage dominant
- Aucune donnée de langage
- Étoiles
- 2.1k
- Forks
- 153
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
### 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_
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- markdown
- Domaine
- frontend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 55/100