#7046·mermaid

Flowchart: Mardown is not interpreted when it is mixed with a text which contains a math formula

Author: jonathanpoelenCreated Oct 5, 2025Updated Sep 10, 2026
LabelsType: Bug / ErrorStatus: Approved

Description

When text contains markdown and a math formula, the markdown text becomes plain text.

Steps to reproduce

---
config:
  htmlLabels: true
---
flowchart LR
  A[**sym**: $$\pi$$]
  B[**sym**: PI]

Screenshots

Code Sample

Setup

  • Mermaid version: v11.12.0
  • Browser and Version: Firefox 143

Suggested Solutions

No response

Additional Context

No response