This reverts commit 996a20d90e. A better way to do fix this bug would be to not parse the syntax error as HTML in the first place.
996a20d90e
Bumps [mermaid](https://github.com/mermaid-js/mermaid) from 9.1.6 to 9.1.7. - [Release notes](https://github.com/mermaid-js/mermaid/releases) - [Commits](mermaid-js/mermaid@v9.1.6...v9.1.7)