Embedding files
An embed is a link with a ! in front of it. Instead of a link to the thing, you get the
thing itself, rendered in place.
![[Note]] the whole note
![[Note#Heading]] one section of it
![[Note#^block-id]] one block of it
![[diagram.png]] an image
![[diagram.png|400]] scaled to 400 px wide
![[diagram.png|400x300]] scaled to fit a box
 Markdown formEmbedding notes
A whole note (![[Note]]) renders the whole note's content inline.
A section (![[Note#Heading]]) renders from that heading to the next heading of the
same or a higher level. A ## Method section ends at the next ## or #, and includes any
### subsections along the way.
A block (![[Note#^block-id]]) renders the single block that id is attached to. See
block ids for how to make one.
Embeds nest up to four levels deep. A note that embeds a note that embeds a note works; beyond four, the chain stops rather than recursing forever.
Links inside an embedded note are live, and follow to the note they point at — not to the note doing the embedding.
Embedding images and other files
| Kind | In reading view |
|---|---|
| Local image | Displayed, with size hints honored |
Remote image () | Downloaded and displayed, with size hints honored (see below). In a heading or a table cell it stays a link |
| Audio | A player: play and pause, the time, a seek bar, mute and, after 0.7.0, a volume slider, playback speed (in the ⋮ menu) and Space to play and pause once you have clicked the player. The file decodes in Scoria (MP3, WAV, M4A, 3GP, FLAC, Ogg, Opus) and plays through the default output device; nothing is opened until you press play |
| Video | A card with the name, picture size, length, codecs and file size, and Open in default app: Scoria does not play video |
Drawn in a viewer of its own, with the toolbar; #page=N opens it at that page and #height= sets its height | |
| Canvas | Its minimap, as Obsidian draws it: the name over a picture of the cards' outlines and the edges between them, as wide as the note and at most 400 px tall. Nothing in it moves; a click opens the canvas. An empty canvas shows its name alone, and a missing one offers to create it |
| Base | The live base view, with its toolbar: the same table, cards, list or kanban a .base opens on in a tab |
Scoria downloads a web image (http:// or https://) when it draws a note that
uses one. It does not ask first, and there is no setting to turn this off, as in Obsidian.
The image's host sees the request, including your IP address. Download attachments for
current file (editor:download-attachments) also fetches a note's web images, but only
when you run it, and saves them in your vault.
Size hints are Obsidian's: |400 sets the width, |400x300 fits a box. They size images;
a canvas or an audio embed ignores them, as Obsidian's do. A hint is not
an alias — Scoria tells them apart the way Obsidian does, described next.
What the alt text becomes
This is fiddly, and it matches Obsidian exactly:
with no URL scheme is an internal embed. Its alt text is the raw alt up to a|.![alt][ref]— a reference-style image — is always a plain<img>, never an internal embed.![[x|a|200]]takes as its alt the first alias part that is not a size hint — herea. With no such part, the alt is the display text, which for a section embed isNote > Heading.
Embeds while editing
In Live Preview, a paragraph that is nothing but an embed renders as a widget in place of its source line, through the same renderer reading view uses — so you see the embedded content while writing around it. Put your cursor in the line and the source comes back. See editing a note.