Skip to content

Syntax highlighting in GitLab Flavored Markdown (GLFM) doesn't color the code blocks set to use C

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

Summary

Syntax highlighting in GitLab Flavored Markdown (GLFM) doesn't color the code blocks set to use C as the language of the code block

Steps to reproduce

Open an issue with this code (sorry for the screenshot but it's the only way to not take it as block code

image

In the preview, the syntax will be highlighted but not when it is saved

Example Project

Shown in above

What is the current bug behavior?

image

What is the expected correct behavior?

image

Relevant logs and/or screenshots

I'm using GitLab Enterprise Edition v17.4.1-ee

Edited by 🤖 GitLab Bot 🤖