Build mermaid graphs using remark-mermaidjs
This prevents the need to include mermaid and its dependencies in production, which reduces bundle size significantly.
This also fixes conflicts between mermaid and bulma CSS, because the mermaid styles are inlined.
Edited by Remco Haszing