Line wrap for syntax highlighting
Line wrap for syntax highlighting
When long lines of code is pasted in Markdown, the lines get extended out of the code container.
Proposal
Wrap the output for long lines of code. For example, using CSS pre-wrap
pre {
white-space: pre-wrap;
}
Overview
Whenever there are long lines of code or output pasted in the Issues, Wiki and other editors, the text content will not be wrapped. Readers of the code need to scroll horizontally, an unnecessary obstacle for users trying to understand the issue.
Use cases
Gitlab users who read Issues , Wiki or any content that contains code snippets.
Feature checklist
Make sure these are completed before closing the issue, with a link to the relevant commit.
-
Feature assurance -
Documentation -
Added to features.yml