Highlight content in the Content Editor using <mark>
Problem to solve
GitLab Flavored Markdown offers a variety of different formatting options for content but the GitLab Banzai pipeline — the backend service that parses GFM into HTML and back — includes support for a limited amount of inline HTML markup. Tables are a good example, which can be written in either Markdown or HTML syntax. <mark>
is another one, offering a nice way to highlight a span of text.
The Content Editor however, is a visual editor. Writing inline HTML is not the goal. While the Content Editor correctly renders existing <mark>
content, there is no way to visually format text in this way.
Proposal
Introduce a way to start writing highlighted content or apply a highlight to selected text within the Content Editor.
- Toggle highlight on and off at the cursor position
- Apply or remove highlight formatting to a selected span of text
- Introduce a keyboard shortcut to apply or remove highlight
Edited by Eric Schurter