Mermaid diagram is not rendered if wiki is displayed on home project view

Summary

If a project does not have a git repo but only a wiki page, mermaid diagrams are not rendered on the default project view, but are rendered in the wiki view.

The behaviour was correct on Gitlab 15.3.3, but is not on 15.8+

Steps to reproduce

  1. Create a project and only activate the wiki and pages capability
  2. Create a default wiki page with a mermaid diagram
  3. Get to the default project view
  4. The mermaid diagram is not displayed, but only the mermaid code.

Example Project

https://gitlab.com/geoffreyarthaud/doc-with-mermaid

What is the current bug behavior?

The source code of mermaid diagram is displayed on the default project view

What is the expected correct behavior?

Mermaid diagrams should be rendered in:

  • Wiki home/default project view
  • Wiki page descriptions
  • All comment sections
Edited by Alex Fracazo