Render an image and put it in the repo, in this way github supports all sorts of tools.
Do you want to risk that your diagram changes outside of your control? (i.e. GitHub changes a mermaid version)