---
title: "The editor"
url: "/docs/reference/editor"
description: "Markdown and code editing in 10nx: wikilinks, line tags, frontmatter, links, images and save conflicts"
---

# The editor

10nx opens markdown in a live editor that renders as you type and saves plain markdown, byte for byte. Code and other text files open in a code editor with syntax colours. Images, PDFs, audio, video and HTML open in a viewer.

Use this page to look up what the editor does with a piece of markdown, or why a note looks the way it does.

## What opens where

| File | Opens in |
| --- | --- |
| `.md`, `.markdown` | The markdown editor |
| Code and text (`.py`, `.ts`, `.toml`, `.sql`, `.yaml`, `Makefile`, `Dockerfile`, `.env`…) | The code editor. Unknown text files open as plain text |
| Images, SVG | A zoom-and-pan viewer |
| PDF, HTML, audio, video | A sandboxed viewer |

Every file saves as you type, about half a second after you stop. `.mdx` files open as plain text.

## Markdown that renders as you type

Headings, lists, task lists, tables, quotes, code blocks, links and images render inline. Pasted markdown renders too. Empty lines you type are kept, and a note saves exactly as it was unless you changed it.

- **`/` at the start of a line** opens the block menu ([Slash menu](slash-menu.md)).
- **`:` and a name** opens the emoji picker; the emoji is saved as the plain character.
- **Typing `[ ]`** at the start of a bullet makes a markdown checkbox.
- **Brackets and quotes** pair as you type.
- **One drag handle** beside each block moves it.

**Never hard-wrap a paragraph.** A paragraph or list item is one line on disk, however long; the editor wraps it to the window.

## Wikilinks

Links to other notes, or any file, in the same workspace:

| Write | Goes to |
| --- | --- |
| `[[note]]` | The note named `note.md` |
| `[[api.ts]]` | Any other file, by its full name |
| `[[folder/note]]` | A specific path, when two notes share a name |
| `[[note#Heading]]` | A heading in the note |
| `[[note\|shown text]]` | The same note, with a different label |

Typing `[[` opens a picker. A link that matches several notes is marked ambiguous (hover to see them), and one that matches nothing is marked unresolved. Click to open; the preview icon opens a read-only drawer instead. On disk a wikilink is plain `[[…]]` text, so the note still reads in other apps. Wikilinks resolve against the main checkout, even in a worktree.

## Markdown links

Relative links to files open them in a tab, web links open your browser. A link can land on a line or heading: `[see](src/app.py:42)`, `[see](plan.md#open-questions)`. Hover a file link for half a second to peek at the file.

## Line tags

One tag per line, toggled with a key:

| Key | Tag | Glyph |
| --- | --- | --- |
| Cmd+1 | To do | ☐, then ☑, then none |
| Cmd+2 | Important | ⭐ |
| Cmd+3 | Caution | ⚠ |
| Cmd+4 | Question | ❓ |
| Cmd+5 | Highlight | ✎, and the line turns yellow |
| Cmd+6 | Definition | 📖 |

The tag is a real character at the start of the line (`- ☐ buy milk`), so it's saved in the file and shows anywhere. The tag picker on the editor toolbar does the same.

## Frontmatter

YAML at the top of a note shows as a properties panel, and a `type:` property gives the note a chip in the file tree, which you can filter by.

## Images

Paste or drop an image and it's saved next to the note in an `images/` folder. With a DeepSeek key, 10nx suggests a file name and a caption. Drag an image's corner to resize it and pick its alignment; both are saved in the alt text, so the markdown stays standard.

## Find, go to line, line numbers

**Cmd+F** finds in the note (it also searches inside rendered code blocks). **Cmd+L** goes to a line, and **Cmd+Shift+L** shows line numbers.

## Save conflicts

If a note changes on disk while you have unsaved edits (Claude edited it, say), the editor stops saving and shows a banner:

| Button | Does |
| --- | --- |
| Reload from disk | Drops your edits and loads the file |
| Overwrite anyway | Saves your version over the file |
| Merge… | Merges both: changes in different places combine on their own, and only real overlaps ask you to pick |

## Next steps

- [Code blocks](code-blocks.md): run buttons, diagrams, charts and tables
- [Slash menu](slash-menu.md)
- [Keyboard shortcuts](keyboard-shortcuts.md#the-editor)
