mermaid diagrams are not rendered in project overview

Summary

Mermaid blocks in a README.md file are only displayed as "source code listing" at the project overview. The diagram is correctly rendered when viewing the file directly by clicking at the file name in the repository view.

Steps to reproduce

  1. Create an empty repository
  2. Create a README.md file in the root
  3. Enter the following markdown code:
```mermaid
graph LR
A --> B
```
  1. Click at "Project overview" in the navigation. The Diagram is not rendered.

Example Project

Does NOT work:

Does work:

What is the current bug behavior?

The mermaid source code is shown.

image

What is the expected correct behavior?

The graphical mermaid diagram should be shown.

image

Relevant logs and/or screenshots

See bug/correct behavior.

Output of checks

This bug happens on GitLab.com

Possible fixes

not known