Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
In Cursor Chat, Mermaid fenced code blocks using the timeline diagram type never render as a diagram. The same Chat session successfully renders other Mermaid types such as flowchart.
This is not caused by diagram text content (Chinese characters, full-width parentheses, %, emoji, duplicate period labels, etc.). A minimal ASCII timeline also fails, while an adjacent flowchart renders correctly.
Independent validation: the failing timeline source parses successfully with [email protected] (mermaid.parse(...) returns PASS).
Steps to Reproduce
- Open a Cursor Chat conversation.
- Ask the agent (or paste) the three Mermaid blocks below in one reply.
- Observe which blocks render as diagrams.
A — minimal timeline (fails)
timeline
title Minimal Timeline
2026-07-22 10h00 : event A
2026-07-22 10h12 : event B
B — realistic case timeline (fails)
timeline
title Trip Timeline (Asia/Hong_Kong)
2026-07-22 10h00 : Checked in at hotel lobby (Hotel App)
2026-07-22 10h12 : Entered subway station Gate A (Transit App)
2026-07-22 10h18 : Exited subway station Gate B (Transit App)
2026-07-22 10h18 : Photo check-in at museum entrance (Maps)
2026-07-22 10h25 : Arrived at cafe near exit C (Maps)
C — flowchart control (works)
flowchart LR
A[C] --> B[I]
B --> C[CM]
Expected Behavior
-
Content hypotheses ruled out: full-width parentheses (), %, warning emoji
, en-dash –, duplicate identical period labels — all parse on [email protected]. -
Confirmed real syntax footgun (not present in the failing sample): colon inside period labels such as 10:00 breaks Mermaid timeline parsing; the sample uses 10h00 and still fails in Cursor Chat.
-
Conclusion: failure is tied to diagram type support / loader registration for timeline in the Chat renderer, not to the specific event text.
Screenshots / Screen Recordings
Operating System
Windows 10/11
Version Information
Version: 3.12.30 (user setup)
VS Code Extension API: 1.128.0
Commit: 63a2996a10d9e476b6c28e951dd7691d9c0cf480
Date: 2026-07-21T22:50:03.568Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Windows_NT x64 10.0.26200
Additional Information
Official Mermaid docs still mark Timeline as experimental. Several hosts historically failed to render timeline/mindmap when lazy-loaded diagram modules were not registered or async render paths were incomplete. Cursor Chat appears to support modern types such as C4 in-app, but timeline currently does not render in Chat in this environment.
Does this stop you from using Cursor
No - Cursor works, but with this issue
