One potential form factor: when using a code block, users could select Mermaid or Mermaid (rendered) (new). The former would preserve existing behavior: show mermaid syntax in a code block. The latter would render the mermaid diagram in the document.
Thank you for your consideration!
Thanks! Open to supporting Mermaid charts, though I think we'd probably want to do as a separate block type.