Tables

The editor supports two types of static tables:

  • A multi-row table in YFM format — cells can contain multi-line content: lists, code snippets, and other tables.

    A multi-row table is created by default using the button on the toolbar.

  • A simple table in Markdown format — cells can only contain inline formatting elements: text formatting, images, and links. Simple tables also support left-aligned, right-aligned, and centered cell text.

You can only add a simple table in Markdown markup mode.

To change a simple table to multi-row format, select a table cell in the visual editor, click the icon, and choose Convert to YFM table.

To add a table:

  1. On the toolbar, click TableStatic table.

    You can also use the quick access menu: type / and select a command from the list.

  2. To add rows or columns, place the cursor in the table and click next to the right or bottom edge of the table.

  3. Fill in the cells. You can format text in the table cells.

To edit a table, select a cell and use the buttons above the column or at the beginning of the row. You can:

  • Add rows or columns before or after the selected cell.

  • Delete the selected row or column.

  • Delete a table.

Multi-row table

To add a multi-row table, use the following markup:

#|
|| **Header 1** | **Header 2** ||
||Two lines
of text
|
- Item 1
- Item 2
- Item 3
||
|#

To highlight the header row in the table, you can apply formatting to the text in the first row. For example, you can make it bold.

Result

Header 1

Header 2

Two lines
of text

  • Item 1
  • Item 2
  • Item 3

Simple table

To insert a basic table into your text, use the following markup:

| Header 1 | Header 2 | Header 3 |
| --- | --- | --- |
| cell 11 | cell 12 | cell 13 |
| cell 21 | cell 22 | cell 23 |
Result
Header 1 Header 2 Header 3
cell 11 cell 12 cell 13
cell 21 cell 22 cell 23

Aligning text

In basic tables, you can left-align, right-align, and center the contents of a column. To do this, use colons (:) in the table's separator row.

| Left-aligned | Centered     | Right-aligned |
| :---           | :----:        | ---:            |
| Text          | Text         | Text           |
| Text          | Text         | Text           |
Result
Left-aligned Centered Right-aligned
Text Text Text
Text Text Text
Previous
Next