Obsidian and notion both supporting mermaid is awesome. I’ve been using mermaid since it came out. My favorite markdown editor Typora supported it right away so I would use it to build learning materials for my courses.
Diagrams as code living in your docs is the best.