Diagrams in dialog text, written in Mermaid
What changed. In sp_api_modal_text with @markdown = 1, a fenced code block with the language mermaid is drawn as a diagram. Everything else in the text renders as before.
sqlEXEC sp_api_modal_text @text = N'## Order status
```mermaid
stateDiagram-v2
[*] --> Draft
Draft --> Confirmed
Confirmed --> Shipped
```', @markdown = 1
The dialog then shows:
stateDiagram-v2
[*] --> Draft
Draft --> Confirmed
Confirmed --> Shipped
A diagram with an error shows the error and its source instead of breaking the dialog.
Who notices it. Developers who build dialogs, and the users who read them.
What you need to do. Nothing.
Availability. Part of the React 19 client from version 261123-r19.2.