Bash-script to generate a valid mermaid html file