Obsidian also supports inline mermaid charts in markdown code blocks. One of those features I don't see mentioned much.
There’s also a specific sequence of steps to import mermaid scripts, I don’t remember the menu location by heart, ChatGPT can also give you the steps needed to do this.