You can use Mermaid inside HTML5 by including the script and a div with the class or mermaid.
Documentation is located here: Mermaid documentation.