This fixes a regression where an underscore in labels no longer worked: https://github.com/knsv/mermaid/releases
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64143
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/46139