Is there any way to insert an equation into a mermaid?

Things I have tried

I’d like to make a diagram likes the following:

sequenceDiagram
participant A
participant B

A->B : $a_{i}$

What I’m trying to do

is it possible to covert the latex code $a_{i}$ to an equation showing in the mermaid?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.