A quarto rendering of the Mermaid diagram syntax examples for issue quarto-dev/quarto-cli#5416.
I recommend you open this side on the left hand side of your screen and the Mermaid demos on mermaid.js on the right hand side of your screen, and compare whether both sides are rendering diagrams in more-or-less the same way. Example: