Tagdown syntax

Tagdown is Markdown plus a small tag layer. Plain Markdown is always valid Tagdown; reach for the extras when they make a note clearer.

This page is a quick tour. The complete reference, with every attribute and an example for each component, is src-tauri/core/src/syntax.md. It is generated from the same source as the app’s Settings → Tagdown Reference and the reference the MCP server gives AI assistants, so it is always current.

# Atlas launch plan

The plan for shipping **Atlas** this quarter. #project/atlas #planning

Weekly check-ins live in [[Weekly planning]], or [[Weekly planning|the weekly note]].
  • The first # heading is the note’s title.
  • #tags anywhere in the text tag the note. Use / to nest them: #project/atlas sits under project in the sidebar.
  • [[Title]] links to another note; [[Title|label]] shows a different label; [[Title#heading]] jumps to a heading. A link can also name a note by its file, [[folder/file]] or [[file]], as Obsidian writes them.
  • An aliases: [Atlas, Launch plan] frontmatter property lets links use either alternate name. Titles and file paths take precedence, and an alias must identify one note. See aliases for examples and autocomplete behavior.

Inline formatting

**bold**, *italic*, ==highlight==, ~~strike~~, `code`, H~2~O, E = mc^2^
[a link](https://example.com), https://example.com, <hi@example.com>
Press <keys>Cmd+K</keys> to search.

Straight quotes curl, -- becomes an en dash, --- an em dash, and ... an ellipsis.

Blocks

- [x] Done
- [ ] Still to do
  - [ ] Indented items nest under the one above
  1. and lists can mix bullets, numbers, and tasks

| Feature | Syntax |
| --- | --- |
| Callout | `::: tip` |

Term :: Definition
Another term :: Another definition

Tagdown is small[^1].

[^1]: Footnotes are collected at the bottom.

Indent a list item to make it a child of the item above; in the editor, Tab and ⇧Tab do it for you.

Callouts

Types are info, warn, error, ok, and tip. GitHub-style names (note, warning, caution, important, danger) work as aliases.

::: tip Pro tip
Use callouts for warnings, notes, and side comments.
:::

<note warn "Careful">
This changes the rendered output.
</note>

Obsidian’s callouts work too, and any > line is a plain blockquote. %% marks a comment, which stays in the source and never reaches the preview or an export.

> [!warning] Careful
> This changes the rendered output.

> A plain quote.

%% A note to yourself. %%
Callout source beside a preview illustration: ::: tip Pro tip opens a titled tip, its Markdown body goes inside, and ::: closes it.
The first line sets the callout's type and title. The closing marker keeps the following text outside the callout. Select any diagram on this page to open it at full size.

Layout and structure

<toc />

<grid 2>
Left column.
|||
Right column.
</grid>

<tabs>
<tab "Source">
The raw text.
</tab>
<tab "Preview">
The rendered document.
</tab>
</tabs>

<details "Read more">
Hidden until opened.
</details>

<aside right>
A side note that floats beside the text on wide screens.
</aside>

</> closes the most recent open tag, so you don’t have to repeat its name.

Source and layout sketches: a grid 2 block uses ||| to separate left and right columns; a tabs block contains named Source and Preview tabs, with only the selected tab's body visible.
Columns show their contents together. Tabs let the reader choose which content to show. These are structural illustrations of the components.

Code, math, and diagrams

<code python file=hello.py lines hl=2>
def greet(name):
    print(f"Hello, {name}!")
</code>

Inline math $a^2 + b^2 = c^2$, or a block:

$$\int_0^1 x^2 \, dx = \frac{1}{3}$$

```mermaid
graph LR
  A[Write] --> B[Preview] --> C[Publish]
```

Math is rendered with KaTeX. Diagrams are written in Mermaid syntax and drawn with Pele, in the preview’s light or dark colours.

Media

<figure src=diagram.png caption="System diagram" size=medium />

![The team at the offsite|320](attachments/offsite.jpg)

![[offsite.jpg|320]]

<quote "Grace Hopper">
The most dangerous phrase is: we have always done it this way.
</quote>

<embed url=https://youtu.be/dQw4w9WgXcQ />

A figure’s size= is small, medium, large or full: a third, half, three quarters or all of the text width. width= takes pixels (width=320) or a percentage (width=60%) instead. In the preview, point at a figure for a bar that sets its size and adds or edits its caption; clicking a caption edits it too. Images you paste or drop into a note arrive as figures.

A plain Markdown image ![alt](path) sits inline with the text. A number after | sets its width in pixels, the way Obsidian writes it. Obsidian’s own ![[offsite.jpg]] works too: with just a file name, Tagdown finds the image wherever it is in the vault, so notes from an Obsidian vault show their pictures. ![[attachments/offsite.jpg|320]] gives the path and a width.

YouTube and Vimeo embeds show a thumbnail that opens the video in your browser.

Templates and inheritance

In the editor, /template opens New note from template. Choosing a template creates a note with its text and properties in a new tab, selects its title for editing, and leaves a link in the original note. Naming the new note updates that link. See creating a linked note.

Templates are ordinary notes titled Book Template, Person Template, and so on. A child template can inherit another template’s properties and icon while keeping its own body text:

---
extends: Person
exclude: [company]
genre: Fiction
---
# Author Template

## Bibliography

Here, Author inherits Person’s properties except company and adds genre. A property defined on Author overrides an inherited property with the same name. extends and exclude configure the template and are not copied into new notes. The editor offers the same controls under Parent type and Inherited properties. See templates and child types for the sidebar’s + workflow and template settings.

Queries and slides

<query tag:project show:tasks />

A <query /> lists matching notes or tasks from the whole vault and stays up to date. See Queries and tasks.

A line containing only --- starts a new slide when you present a note. See Sharing your notes.

Search the guides

Type to search all guides.

esc to close