Add Mermaid.js support to Hugo 4.12.2022 To use MermaidJS with Hugo, create a default template for Mermaid markup and override the content template by adding a script to initialize MermaidJS. This allows you to use code blocks that start with 'mermaid' to generate diagrams in your Hugo pages. ...