Background not rendered for link label with math formula
Author: skylee03Created May 25, 2024Updated Sep 28, 2026
LabelsType: Bug / ErrorStatus: Triage
Description
When there is a math formula in the link label, the background color cannot be properly rendered.
Steps to reproduce
See live editor example.
Screenshots
Code Sample
flowchart RL
subgraph A["$$A$$"]
a(($$a$$))
end
subgraph B[""$$B$$""]
b(($$b$$))
end
a-->|"g: B \to A"|b
b-->|"$$f: A \to B$$"|aSetup
- Mermaid version: v10.9.1
Suggested Solutions
No response
Additional Context
No response
Source: mermaid-js/mermaid