...
Log into your Confluence instance as an admin.
Click on “Apps > Manage apps” in the header menu.
Click on “Find new apps” on the right navigation.
Search for “Mermaid Charts & Diagrams for Confluence” and select it.
Click on “Try it free” to install the app.
Usage
Macros “Mermaid diagram” and "Mermaid diagram (Remote)"
Mermaid Charts & Diagrams for Confluence provides two macros called “Mermaid diagram” and "Mermaid diagram (Remote)" that can be added to any Confluence page. Both macros can be added by clicking the “Insert” / “+” Button in the edit mode and selecting respective macro.
...