Just created the library @southball/remark-mermaid
for using mermaid diagrams in Remark. Multiple themes on the same page is also supported through configuration and re-prefixing of referenced classes.
An example is shown below:
stateDiagram-v2
[*] --> Wake
Wake --> Eat
Eat --> Sleep
Sleep --> Wake