Skip to content

How do I use inline math as the contents in a diagram box using mermaid? #11395

Answered by mcanouil
tony-an-phd asked this question in Q&A
Discussion options

You must be logged in to vote

Could you provide a complete small reproducible example rather than a standalone snippet of code? Also what version of Quarto are you using?

Also, see previous discussion:

Note that your diagram is not valid (independently of Quarto).
You need to write valid Mermaid.js diagram, see Mermaid.js documentation.


You can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````).
See https://quarto.org/bug-reports.html#small-is-beautiful-aim-for-a-single-document-with-10-lines.

If you have multiple files (and if it is absolutely required to have multiple files), please share …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mcanouil
Comment options

Answer selected by tony-an-phd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
diagrams-mermaid Mermaid diagrams math any issue related to math support in specific formats
2 participants