Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Cursor’s built-in Mermaid renderer ships a Mermaid version that predates C4Container support.
C4 diagram types (C4Container, C4Component, etc.) were stabilized in Mermaid v10.x. The
bundled version doesn’t include them.
The bierner.markdown-mermaid extension (which bundles Mermaid 11.x and does render C4
correctly) was recently deprecated because VS Code 1.121 merged native Mermaid support.
However, Cursor’s native renderer doesn’t match that parity yet, so users who uninstalled the
now-deprecated extension lose C4 rendering with no recourse.
Steps to Reproduce
- Create a .md file with a C4Container diagram (any standard C4 using C4Container, Boundary,
Container, ContainerDb, System_Ext, Rel) - Open Markdown preview with Cmd+Shift+V
“Mermaid Syntax Error” banner
Expected Behavior
diagram renders
Screenshots / Screen Recordings
Operating System
MacOS
Version Information
Version: 3.7.21
VS Code Extension API: 1.105.1
Commit: 517f696d8ab6c53eb04fbfdaae705cd146bf3460
Date: 2026-06-07T21:46:09.237Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
xterm.js: 6.1.0-beta.256
OS: Darwin x64 21.6.0
For AI issues: which model did you use?
N/A
Additional Information
Workaround: reinstall bierner.markdown-mermaid and use Markdown: Open Preview from its
command rather than the built-in shortcut. The two renderers conflict when both are present;
the extension’s command bypasses the built-in.
Ask: update the bundled Mermaid version to 11.x (or current stable) to match VS Code 1.121’s
native support level.
Does this stop you from using Cursor
No - Cursor works, but with this issue
