Markdown code block expected to be plain text is rendered as auto-selected language
Created by: renkun-ken
The GFM guideline here says that a code block without specifying a language name would be rendered as plain text. However, in the markdown files the web preview on GitLab renders all "plain" code chunks with automatically chosen language, which is unwanted.
To reproduce the problem:
- Create a
.md
file and add a code block enclosed by ```, the content can be a URL like or a git command. - Do not specify any language name for the code block.
- Commit and push that file.
- View the file in GitLab file viewer.
- Find that the code block is rendered as groovy or some other language.