doc/user/rich_text_editor.md
{{< details >}}
{{< /details >}}
{{< history >}}
content_editor_on_issues. Disabled by default.content_editor_on_issues enabled by default in GitLab 16.2.content_editor_on_issues removed in GitLab 16.5.{{< /history >}}
The Rich text editor is the default text editor for new users in GitLab.
Rich text editor is available in:
Features of the editor include:
To track work on adding the rich text editor to more places across GitLab, see epic 7098.
Use the rich text editor to edit descriptions, wiki pages, add comments.
To switch to the rich text editor: In a text box, in the lower-left corner, select Switch to rich text editing.
If you want to enter Markdown source in the text box, return to using the plain text editor.
To switch to the plain text editor: In a text box, in the lower-left corner, select Switch to plain text editing.
The rich text editor is fully compatible with GitLab Flavored Markdown. It means that you can switch between plain text and rich text modes without losing any data.
Rich text editor also supports input rules that let you work with rich content as if you were typing Markdown.
Supported input rules:
| Input rule syntax | Content inserted |
|---|---|
# Heading 1 through ###### Heading 6 | Headings 1 through 6 |
**bold** or __bold__ | Bold text |
_italics_ or *italics* | Italicized text |
~~strike~~ | Strikethrough |
[link](https://example.com) | Hyperlink |
code | Inline code |
```rb + <kbd>Enter</kbd> | |
```js + <kbd>Enter</kbd> | Code block |
* List item, or | |
- List item, or | |
+ List item | Unordered list |
1. List item | Numbered list |
<details> | Collapsible section |
Unlike in raw Markdown, you can use the rich text editor to insert block content paragraphs, list items, diagrams (or even another table!) in table cells.
To insert a table:
Inside a table cell, you can use a menu to insert or delete rows or columns.
To open the menu: In the upper-right corner of a cell, select the chevron {{< icon name="chevron-down" >}}.
Select multiple cells and merge or split them.
To merge selected cells into one:
To split merged cells: In the upper-right corner of a cell, select the chevron {{< icon name="chevron-down" >}} > Split cell.
Insert Mermaid and PlantUML diagrams and preview them live as you type the diagram code.
To insert a diagram: