-
Notifications
You must be signed in to change notification settings - Fork 5k
Mermaid diagrams render with invisible/missing text labels on Linux #9402
Copy link
Copy link
Open
Labels
area:editor-notebooksEditors, notebooks, markdown rendering, LSP, and code display.Editors, notebooks, markdown rendering, LSP, and code display.area:ui-frameworkCore Warp UI framework, rendering, layout, and windowing infrastructure.Core Warp UI framework, rendering, layout, and windowing infrastructure.bugSomething isn't working.Something isn't working.os:linuxLinux-specific behavior, regressions, or requests.Linux-specific behavior, regressions, or requests.ready-to-implementThe issue is ready for implementation work.The issue is ready for implementation work.repro:mediumThe report suggests a plausible repro path, but some uncertainty remains.The report suggests a plausible repro path, but some uncertainty remains.triagedIssue has received an initial automated triage pass.Issue has received an initial automated triage pass.
Metadata
Metadata
Assignees
Labels
area:editor-notebooksEditors, notebooks, markdown rendering, LSP, and code display.Editors, notebooks, markdown rendering, LSP, and code display.area:ui-frameworkCore Warp UI framework, rendering, layout, and windowing infrastructure.Core Warp UI framework, rendering, layout, and windowing infrastructure.bugSomething isn't working.Something isn't working.os:linuxLinux-specific behavior, regressions, or requests.Linux-specific behavior, regressions, or requests.ready-to-implementThe issue is ready for implementation work.The issue is ready for implementation work.repro:mediumThe report suggests a plausible repro path, but some uncertainty remains.The report suggests a plausible repro path, but some uncertainty remains.triagedIssue has received an initial automated triage pass.Issue has received an initial automated triage pass.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Pre-submit Checks
Describe the bug
Mermaid diagrams render structurally (boxes, arrows, lines, connectors all visible) but all text is completely invisible. Node labels, edge labels, sequence diagram participant names — every text element is blank. The diagrams are correct in layout but entirely unreadable.
Affected diagram types:
Root cause (confirmed): The SVG renderer fails to resolve generic CSS font families (
sans-serif,monospace, etc.) used by mermaid when the expected system fonts are not installed. Since mermaid defaults to these generic families for all text elements, every label disappears silently.I fixed this exact same bug in Zed Editor — see zed-industries/zed#51623. The fix involved bundling fallback fonts and properly resolving generic font family names in the SVG renderer. The same approach would apply here.
To reproduce
Expected behavior
Text labels should render inside nodes, on arrows, and as participant names — matching how mermaid diagrams display on macOS.
Screenshots, videos, and logs
Operating system (OS)
Linux
Operating system and version
CachyOS (Arch-based), kernel 7.0.1-1-cachyos
Shell Version
zsh 5.9
Current Warp version
Latest stabley
Regression
No, this bug or issue has existed throughout my experience using Warp
Recent working Warp date
N/A
Additional context
Using Wayland/X11 ().
Prior art — fix for same bug in Zed Editor:
The root cause is the same: mermaid emits SVG text elements with generic font families (
sans-serif), and the renderer has no fallback when those fonts aren't available on the system. Bundling a default sans-serif font (e.g., Inter, Noto Sans) and mapping generic family names to it resolves the issue.Does this block you from using Warp daily?
No
Is this an issue only in Warp?
Yes, I confirmed that this only happens in Warp, not other terminals.
Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e
None