# Docs & the editor

Docs, task and issue descriptions, and comments all use the same block editor. Text in the editor is a little smaller than before, so more of a doc fits on screen.

-   **Slash menu.** Type <kbd>/</kbd> to insert a block. The menu has five sections: *Text* (text, headings 1–3, quote), *Lists* (bulleted, numbered, to-do and toggle lists), *Blocks* (callout, toggle headings, table, 2 or 3 columns, divider, code block), *Media* (emoji) and *Advanced* (footnote, mention a person, link a task or doc). Keep typing to filter the menu.
-   **`@` links.** Type <kbd>@</kbd> to mention a person or link a task, issue or doc. Links are real connections, not text: both ends show them.
-   **Callouts.** A highlighted box for a note, tip, warning and more (note, summary, info, to do, tip, success, question, warning, failure, danger, bug, example, quote). Pick the type and edit the title on the callout itself. Turn on folding to let readers collapse it, and choose whether it starts open or closed.
-   **Highlights.** Select text and press <kbd>Mod+Shift+H</kbd>, or type `==text==`.
-   **Footnotes.** Insert one from the slash menu (*Footnote*). It becomes a numbered reference, and the note text collects at the bottom of the doc.
-   **Toggles.** A toggle list hides its content behind a title you click to open or close. A toggle heading does the same under a heading 1, 2 or 3.
-   **Columns.** Lay a doc out in 2 or 3 columns side by side. Any block can go in a column. A thin divider line separates the columns; *Hide divider* in the block menu turns it off (and *Show divider* brings it back). *Unwrap columns* in the block menu puts the content back in one column.
-   **Tables.** Real tables with a header row. A table menu gives you *Row above*, *Row below*, *Column left*, *Column right*, *Delete row*, *Delete column*, *Header row* and *Delete table*.
-   **Code highlighting.** Type three backticks and a language, such as ` ```ts `, to start a code block that is colored for that language. In the slash menu, add the language after *Code* (for example `/code python`).
-   **Block handle.** Each block has a handle. Drag it to move the block, or open its menu: *Duplicate*, *Move up*, *Move down*, *Insert line above*, *Turn into* (text, headings, lists, quote, callout, toggle list, code block) and *Delete*. From the keyboard: <kbd>^K</kbd> <kbd>o</kbd> opens the menu, <kbd>Mod+Shift+↑</kbd> and <kbd>Mod+Shift+↓</kbd> move the block, and <kbd>Mod+Shift+D</kbd> duplicates it.
-   **Emoji.** Type <kbd>:</kbd> and a few letters to pick from a list, or write a whole `:shortcode:` such as `:rocket:`. *Emoji* is also in the slash menu.
-   **Links to a heading or a block.** Type <kbd>&#91;&#91;</kbd> to open a picker and link a doc, one of its headings, or a single block. In text these read `[[Title]]`, `[[Title#Heading]]` and `[[Title#^block]]`. Add a label with `[[Title|label]]` to show your own words instead of the title. Links keep working when the target doc is renamed. *Copy link to block* in the block menu copies a link to the block you're in.
-   **Embeds and synced blocks.** Show another doc, one of its sections or a single block inside this one: `![[Title]]`, `![[Title#Heading]]` or `![[Title#^block]]`. An embed is a read-only view that stays in step with the original; open the original to edit it. You only see an embed of a doc you can open.
-   **Tags.** Type `#tag` in text and it shows as a chip. Click a tag to search for it.
-   **Page icons and covers.** Give a doc an emoji icon and a cover: one of the gradients, or an image you upload. Use the **\+ Icon** and **\+ Cover** pills under the title; click the icon to change it.
-   **Images, files and video.** Paste or drop an image into a doc and add a caption under it. Other files show as a card you can open in the [viewer](/work/viewing-files/) or download. Videos play in the page (skipping ahead or back isn't supported yet).
-   **Link previews.** Turn a link into a card with its title, site name and image. The server fetches the preview once, when you add it.
-   **Web embeds.** Embed a live view from YouTube (in privacy mode), Vimeo, Loom, Figma, Google Docs, Google Sheets, Google Slides, Google Maps, Miro or CodePen. A link to any other site becomes a link preview instead.
-   **Editing at the same time.** An open doc picks up changes someone else saves while you are not typing. If they save first while you have unsaved text, your text stays and a notice offers **Load latest** (show their version) or **Keep mine** (save yours over it). If a save fails, your text is kept and the doc offers **Retry** or **Discard**; the browser asks before you close a tab that still holds unsaved text.
-   **Leaving a block.** <kbd>Mod+Enter</kbd> exits the block you're in and continues on a new line below.
-   **Maths.** Write `$x^2$` for inline maths, or put TeX between two lines that are only `$$` for a math block (also *Inline math* and *Math block* in the slash menu). Click a formula to edit its TeX. Formulas are drawn with KaTeX in its safe mode, so TeX can't run links or scripts. Prices such as `costs $5 and $10` stay plain text. A formula KaTeX can't draw shows its source in red.
-   **Diagrams.** A code block in the `mermaid` language (or *Diagram* in the slash menu) is drawn as a Mermaid diagram above its source, which stays editable. Diagrams are drawn in a locked-down frame with no access to your account, and a diagram with a mistake shows the error message instead.
-   **Whiteboards.** *Whiteboard* in the slash menu adds an Excalidraw drawing to the page. It saves as you draw, opens full screen on phones, and is kept as its own `.excalidraw.md` file beside the note (the Obsidian Excalidraw format) when you export. Anyone who can read the page can see the drawing; people who can edit the page can draw. If another tab saved first, termynl asks before overwriting.
-   **Inline databases.** *Inline database* embeds any view you can open and lets you edit its cells in place. Each column can show a total: a count, a sum or an average. *New table* makes a table right in the doc: its rows are notes under the doc, with typed columns, a view and the embed made for you. Every row is a real item with its own access, so each reader sees only the rows they can open, and totals count only those. *Change type* on a column converts every value safely: if some values can't convert, it refuses and names the rows, and nothing changes.
-   **Live answers.** *Live answer* turns a view into a figure that stays current: count, sum or average, optionally grouped by a field, shown as a number, a table, a bar chart or a line chart. Each reader sees the answer for the rows they can open. **Ask Tyn** fills in the picker from a question in plain words; nothing is saved until you press *Save*.
-   **Table of contents and outline.** *Table of contents* in the slash menu lists the doc's headings and jumps to one on click. On a wide screen an outline rail beside the doc does the same and marks where you are.
-   **Today's note.** **Today** in the team switcher (or <kbd>^K</kbd> <kbd>g</kbd> <kbd>y</kbd>, or *Today's note* in the command palette) opens today's daily note, creating it if needed. It lives in your own personal space, titled with the date and tagged `#daily`.
-   **Comments on selected text.** Select text within one block and press *Comment* (or <kbd>Mod+Alt+M</kbd>). The comment shows as a card in the margin next to its text, or in a sheet on phones. Anyone who can comment can reply and resolve a thread. If the quoted text is edited the card says "Text changed", and if it is deleted the thread stays as "Detached". Only a comment's author can edit it. Write `@Tyn` in a thread to ask a question, and Tyn replies in the same thread as Tyn, using only the commented doc. Agents over MCP can also start, reply to and resolve comments.

## Markdown

Every block has a Markdown form, so you can paste Markdown in, export it, and edit docs in other Markdown tools such as Obsidian. Properties at the top of a note (YAML frontmatter between `---` lines) come in on import and go out on export: the title, aliases, tags, icon, cover and your shared properties by name. Blocks that plain Markdown has no syntax for are written in a form other tools show sensibly (for example a toggle appears as a collapsible section, and columns appear stacked).

| Block | Markdown |
| --- | --- |
| Callout | `> [!note] Title`, then the body on lines starting with `>` |
| Folded callout | `> [!tip]- Title` (folded) or `> [!tip]+ Title` (foldable, open) |
| Highlight | `==text==` |
| Footnote | `[^1]` in the text and `[^1]: The note.` on its own line |
| Toggle | `<details><summary>Title</summary>` … `</details>` |
| Toggle heading | `<summary><h2>Title</h2></summary>` inside the same `<details>` wrapper |
| Columns | A `<!-- termynl:columns -->` line, a `<!-- termynl:col -->` line before each column, then `<!-- /termynl:columns -->` |
| Table | `\| A \| B \|` with a `\| --- \| --- \|` line under the header |
| Code block | Three backticks and a language, such as ` ```ts ` |
| To-do list | `- [ ] open` and `- [x] done` |
| Emoji | The emoji character itself (typing `:shortcode:` in the editor converts it) |
| Link to a heading | `[[Title#Heading]]` |
| Link to a block | `[[Title#^blockid]]` |
| Link with a label | `[[Title\|label]]`, or `[[Title#Heading\|label]]` |
| Embed a doc | `![[Title]]` on its own line |
| Embed a section | `![[Title#Heading]]`: the heading and what follows it, up to the next heading of the same or a higher level |
| Synced block | `![[Title#^blockid]]` |
| Tag | `#tag` after a space or at the start of a line |
| Properties | YAML between `---` lines at the top: `title`, `aliases`, `tags`, `icon`, `cover` and shared properties by name |
| Image | `![alt](files/name.png)` or `![alt](https://...)` on its own line |
| Image or video with caption | `<figure>`, the image or video, `<figcaption>Caption</figcaption>`, then `</figure>` |
| File | `![[report.pdf]]` on its own line (a doc with the same name wins over a file) |
| Video | `![[clip.mp4]]` (`.mp4` or `.webm`) |
| Web embed | A `<!-- termynl:embed -->` line, then `[Title](https://...)` linking to one of the supported providers |
| Link preview | A `<!-- termynl:bookmark -->` line, then `[Title](https://...)` |
| Page icon | `icon: 🚀` in the properties |
| Page cover | `cover: files/cover.png` or `cover: gradient:3` (gradients 1–8) in the properties |
| Columns without a divider | `<!-- termynl:columns nodivider -->` as the opening line |
| Inline math | `$TeX$` on one line, with no space just inside either dollar; `$5` and `$10` stay text, and `\$` is a literal dollar |
| Math block | A line that is only `$$`, the TeX, then another line that is only `$$` |
| Diagram | A code block with the language `mermaid` |
| Whiteboard | `![[Title.excalidraw]]` on its own line; the drawing is its own `Title.excalidraw.md` file in the Obsidian Excalidraw format (images and embedded web pages inside a drawing aren't kept) |
| Inline database | A `<!-- termynl:view <view id> -->` line, then a Markdown table of the rows as you see them. The table is a snapshot: edit the rows in termynl |
| Live answer | A `<!-- termynl:answer view=<id> agg=count\|sum:<field>\|avg:<field> [by=<field>] show=number\|table\|bar\|line -->` line, then a Markdown table snapshot of the answer as you see it |
| Table of contents | `<!-- termynl:toc -->` on its own line (Obsidian's outline pane covers it) |
| Comment on selected text | Not written: comments live in termynl, never in the body |

Things that don't survive a round trip are small: for example column alignment in tables, link titles, and which toggle was open in a closed copy; formatting in a caption; YAML comments and key order in properties; and a link preview's description, site name and image (only the title is kept). Other Markdown tools show a web embed or a link preview as a plain link.

<div class="shot" data-screenshot="slash-menu">screenshot: slash menu (coming soon)</div>
