# Writing in the editor: links, tables, code and API specs

Updated: 2026-11-23

The description of an issue, comments and documentation pages share one editor. **Visual** shows the text formatted; **Markdown** shows the source. Both store the same Markdown, so AI agents and the API see no difference.

## Long texts

While you edit a long text, the **toolbar** (Visual | Markdown and the formatting buttons) stays visible right under the page header (in a dialog: at its top) and scrolls away only with the end of the editor. In a comment, the row with **Cancel** and **Save** stays at the bottom of the window until the end of the editor is on screen. A thin line marks both bars while they are pinned. Short texts look as before.

## Links

- **Seeing a link:** a link is in the link colour and underlined. When you point at it, the pointer becomes a hand and the underline gets thicker, in the editor and in the read view. In the read view, the address shows as a tooltip.
- **Where it goes:** in the visual editor, pointing at a link (or putting the cursor into it, which also works on a phone) opens a small bubble with the address and three buttons:
  - **Open link** in a new tab.
  - **Edit link:** change the address and confirm with Enter or ✓. Esc cancels; an empty address removes the link.
  - **Remove link:** the text stays, the link goes.
- **Opening from the text:** a plain click puts the cursor into the link, so you can edit its text. **Ctrl+click** (⌘+click on a Mac) opens it in a new tab; the bubble reminds you of this.

## Tables

Tables are stored as Markdown tables (GFM): no merged cells, no lists or blocks inside a cell.

- **New table:** the table button in the toolbar (*Insert table*) inserts a table with 3 rows and 3 columns, the first row as the header.
- **Toolbar in a table:** while the cursor is in a table, the toolbar shows only what fits into a cell (bold, italic, strikethrough, code) and the table tools:
  - **Row ▾:** insert above, insert below, delete.
  - **Column ▾:** insert left, insert right, delete, align left / centred / right.
  - **Align** the current column left, centred or right (click again to remove the alignment). Markdown aligns whole columns.
  - **Header row** on or off, and **Delete table**.
- **Handles:** point at a cell, and a handle appears at the start of its row and on top of its column. A click selects the whole row or column and opens its menu. The small **+** inserts a row below or a column to the right.
- **Right-click** in a table opens all row, column and table actions.
- **Selecting cells:** Shift+arrow keys or dragging across cells selects several cells; they are highlighted. Delete, copy, cut and paste act on exactly these cells, and deleting rows or columns removes all selected ones.
- **Keyboard:**
  - **Tab** / **Shift+Tab** go to the next / previous cell; Tab in the last cell adds a row.
  - **Ctrl+Shift+Enter** (⌘ on a Mac) inserts a row below, **Ctrl+Shift+Backspace** deletes the row. Both are listed in the shortcut overview (**?**) and can be changed there.
  - **Shift+Enter** starts a new line inside a cell (stored as `<br>`), so a list of roles stays readable in one cell.
- **Paste from a spreadsheet:** a range copied from Excel, Google Sheets or LibreOffice becomes a table (no longer a picture of the range). Pasting into selected cells fills them.
- On a phone, the toolbar holds the same table tools.

## Code blocks

A code block is a fence with an optional language (```` ```yaml ```` … ```` ``` ````), or the code-block button in the toolbar. Blocks with a language are coloured. When you read a documentation page, an issue description or a comment:

- **Bar:** language, number of lines and size, **Copy**, **Download** (`code.yaml`, `code.json` … after the language) and **Full screen** (Esc closes). Short blocks show the buttons only when you point at the block or move into it with Tab.
- **Long blocks:** a block with more than 25 lines starts with 20 lines and a fade; **Show all n lines** opens it in place, **Collapse** closes it again. Copy and download always take the whole block.
- **Line numbers** are in their own column and are not copied. Click a number to put a link to the line into the address (`…#L120`); opening such a link opens the block and scrolls to the line.
- Long lines scroll sideways inside the block.

## API specs (OpenAPI)

Paste an OpenAPI spec into a documentation page as a code block, and the reading view shows it as an **API reference** instead of thousands of lines of YAML:

1. Click **Edit** on the page and switch to **Markdown** (or insert a code block in the visual editor).
2. Paste the spec between ```` ```yaml ```` and ```` ``` ```` (`yml`, `json` and `openapi` work too). The first key must be `openapi:` (OpenAPI 3.0 / 3.1) or `swagger:` (Swagger 2.0).
3. Save. The editor keeps showing the YAML; the reading view shows the reference.

The reference shows:

- **Head card:** title, version, servers (with a copy button), how to sign in, and the number of endpoints, tags and schemas. **`</>`** switches to the source and back; the file button downloads the spec unchanged (`openapi.yaml`).
- **Filter** by path or name, by **Method** and by **Tag**; **Expand all**.
- **One group per tag** with a row per endpoint: method, path, summary and response codes. A row opens in place: description, sign-in, parameters and request body as tables (*Required* marked), responses, examples and **Link to endpoint**. Endpoints without a tag are under *Other*.
- **Schemas** at the end; schema names in tables are links that open the schema.
- The outline (**On this page**) lists the tags with their endpoint counts.

The view only reads the spec. It never sends requests to the servers in it, and `$ref` works only inside the spec itself, never to other files or URLs. If the spec does not parse, the code block stays and one line says why, with the line number.
