Backend: Mermaid diagrams and perhaps syntax highlighting not rendered

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

From #421520 (closed)

See https://gitlab.com/gitlab-org/quality/pipeline-common/-/ci/catalog/resources/27#key

image

Proposal

Looking at the field readme_html in ee/app/graphql/types/ci/catalog/resource_type.rb, we are calling ::MarkupHelper.markdown, which does not seem to include the GFM (GitLab flavored markdown) pipeline so we should include the GFM pipeline to support these diagrams properly.

Additional details

Some relevant technical details, if applicable, such as:

  • Does this need a feature flag?
  • Does there need to be an associated instrumentation issue created related to this work?
  • Is there an example response showing the data structure that should be returned (new endpoints only)?
  • What permissions should be used?
  • Is this EE or CE?
    • EE
    • CE
  • Additional comments:

Links/References

Edited by 🤖 GitLab Bot 🤖