How to add Mermaid diagrams support to your Hugo site

Learn how to render Mermaid diagrams natively in your Hugo site with a codeblock render hook, loading the library only where needed and matching your theme.