# Links and embeds

Link or embed a note, drawing or file. MemoMori updates links when you rename
or move the target, except in the cases [listed below](#rename-or-move-without-breaking-links). The [syntax page](/docs/markdown#wikilinks) lists every form.

## Link to a note

Type `[[` and pick a file from the list. MemoMori writes the link for you:

```md
Plan the trip in [[Trip plan]], and keep [[Trip plan#Budget|the budget]] short.
```

The list also finds a note by the `title` and `aliases` in its
[frontmatter](/docs/markdown#frontmatter). Pick an alias and it becomes the
link text: `[[2026-03|Kyoto trip]]`.

A link can name a note by alias too: `[[Kyoto trip]]` opens `2026-03`, as long
as no file is called `Kyoto trip` and no other note holds that alias.

Link to a note that doesn't exist yet and the link shows as missing. Make the
note and the link starts working.

## Show a file inside a note

Put `!` in front of a link to embed the file. It shows the file as it is now,
so edits to the file show in every note that embeds it.

```md
![[Trip plan#Budget]]
```

To add a picture, paste it or drop it into the note. MemoMori uploads it next
to the note and writes the embed.

Embed a PDF and you read it inside the note. `![[paper.pdf#page=3]]` opens it
at page 3, and `[[paper.pdf#page=3]]` links to that page. An embedded book
opens when you click **Read here**. See
[PDFs and books](/docs/markdown#pdfs-and-books).

## How a name finds its file

You rarely need folders in a link. MemoMori looks, in order:

1. at that path from the top of your files,
2. next to the note,
3. anywhere, if only one file has that name.

Case doesn't matter. If two files match, the link says so. Add the folder to
pick one: `[[travel/Trip plan]]`.

Markdown links work too. `[text](path)` starts from the note's folder, and a
leading `/` starts from the top.

## Rename or move without breaking links

Rename or move a note, drawing or file, and MemoMori rewrites every link and
embed that points at it, in notes and in drawings. Your labels and headings stay
as you wrote them. Each rewrite shows in that note's history as _References
updated due to rename_.

MemoMori leaves alone links inside code blocks and frontmatter, and a short link
that would match two files after the rename.

## Preview a link

Hover over a note link to read a preview without leaving the note. Long notes
show their beginning; click **View** for the full note.

## See what links here

Open a note on a wide screen and the **Linked from** panel lists every note that
links to it, embeds it, or uses it as an image. Move it left, right or off in
[Settings → Editor](https://memomori.app/settings/editor).
