Currently you need to insert a code block and switch to mermaid syntax. This could be more obvious e.g. in the block menu next to LaTeX formulas <img width="544" height="449" alt="Image" src="https://github.com/user-attachments/assets/2bae7f7d-ad2c-4b30-b972-593487d49018" />