Garnet Markdown Syntax
Last updated 2026-09-27 · 17 min
Overview
Every note in Garnet is a plain Markdown file in your Space. This page lists the syntax Garnet understands and how it looks in your notes.
- Pretty shows each element as it will read, and shows the Markdown again on the line you are editing.
- Preview shows the note read-only, fully rendered.
- Raw shows the file exactly as it is saved.
The syntax comes in three groups:
- Standard elements work in any Markdown app.
- Extended elements are widely used additions.
- Compatibility elements come from notes written in Obsidian and similar tools, so the notes you bring with you keep reading well. Garnet supports the commonly used part of each; every section says what is left out.
Garnet never rewrites your syntax. What you type is what is saved.
Where apps disagree on how to write something, this page shows one way: the one most Markdown apps understand. Garnet also reads a few other common ways, so notes you paste or bring from elsewhere still show correctly. Each section names them.
Standard Markdown
Headings
Start a line with one to six # and a space.
# Note title
## Section
### Smaller section
Levels four to six (#### to ######) work the same way. Headings are what a table of contents lists.
Paragraphs and line breaks
Leave a blank line between paragraphs. To break a line without starting a new paragraph, end it with two spaces or a backslash (\).
Emphasis
| You type | You get |
|---|---|
*italic* or _italic_ | italic |
**bold** or __bold__ | bold |
***bold italic*** | bold italic |
<u>underline</u> | <u>underline</u> |
An underscore inside a word, as in snake_case, stays an underscore.
Markdown has no underline of its own, so Garnet saves underline as <u>…</u>, which Obsidian, GitHub, Typora and most other apps show as underline too. You do not need to type the tags: select text and press <kbd>⌘</kbd> + <kbd>U</kbd> (<kbd>Ctrl</kbd> + <kbd>U</kbd> on Windows and Linux), or right-click the selection and choose Underline.
Lists
Use -, * or + for bullets and 1. for numbered lists. Indent by two spaces to nest a list.
- One thought per bullet
- A detail underneath
1. First step
2. Second step
A numbered list keeps the number it starts with. A list starting at 3. counts on from 3.
Quotes
Start a line with >. Use > > for a quote inside a quote.
Code
Wrap inline code in backticks: `file-name.wav`. For a block of code, put three backticks on the lines before and after it. Name the language after the opening backticks to get syntax colours. About 35 common languages are coloured; other names show as plain code.
```bash
rsync -a "$card/" "$HOME/Footage/"
```
Links and images
| You type | You get |
|---|---|
[text](https://garnet.md) | A link |
[text](other-note.md) | A link to another note in your Space |
<https://garnet.md> | The address as a link |
<name@example.org> | An email link |
 | The picture itself |
[text][ref] with [ref]: https://… anywhere in the note | A link whose address is written separately |
Pictures and files stored in your Space's assets folder load in the app, including offline.
Horizontal rule
Put ---, *** or ___ on a line of its own.
Escaping
Put a backslash before a symbol to keep it as written: \* stays an asterisk and does not start italics.
HTML
Simple HTML such as <kbd>, <br>, <u>, <sub>, <sup> and <details> renders. Garnet removes scripts, event handlers and links that run code.
Extended Markdown
Tables
Separate the header from the rows with dashes. Colons set the alignment: :--- left, :---: centre, ---: right.
| Reel | Minutes | Ready |
| :--- | ------: | :---: |
| 01 | 42 | ✓ |
Task lists
- [ ] is an open task and - [x] a finished one. In Pretty, click the box to tick it. Preview is read-only.
Strikethrough, highlight, superscript and subscript
| You type | You get |
|---|---|
~~changed plan~~ | Struck through |
==must remember== | Highlighted |
24 fps^1^ | Superscript |
H~2~O | Subscript |
A single tilde always means subscript, as in Pandoc, Typora and Joplin. Bear uses ~text~ for underline instead; in Garnet, write underline as <u>text</u>.
Footnotes
Put [^name] where the note should point, and [^name]: The footnote text. on its own line, usually at the end of the note. In Preview, the reference and the footnote link to each other.
For a short footnote, write it where it belongs, with no name to keep track of:
We paid the deposit^[Split with Aiko, she sent her half on Friday.] and booked the van.
The footnote text stays where you wrote it, set small and grey, so you can read it in place. Views that show a whole note at once, such as Zen mode, turn it into a number and list the text at the end, after the note's other footnotes. Type /footnote to insert one.
Table of contents
Put [TOC] on a line of its own to list the note's headings, each linked to its section.
[TOC]
# Trip to Bornholm
## Packing
## Day one
The list nests headings under the ones above them, and updates as you add, rename or remove headings. Click an entry to go to that section. Headings inside code blocks are left out. [toc] in lower case works too, and /contents inserts it.
Definition lists
Write the term on its own line, then the definition on the next line after : .
Room tone
: Thirty seconds of a quiet room, recorded for the edit.
Abbreviations
*[DFI]: Danish Film Institute anywhere in the note explains every DFI in it when you hover over the word.
Keyboard keys
<kbd>⌘</kbd> + <kbd>K</kbd> shows the keys as keycaps.
Collapsible sections
Wrap a section in <details> with a <summary> title. Markdown inside it works, as long as you leave a blank line after <summary>…</summary>.
Maths
Garnet typesets LaTeX maths with KaTeX, which is included in the app, so equations work offline.
| You type | You get |
|---|---|
$E = mc^2$ | An equation inside the sentence |
$$E = mc^2$$ on a line of its own | An equation on its own line, centred |
$$, the equation, then $$, on separate lines | A longer equation on its own lines |
The area is $\pi r^2$.
$$
\begin{aligned}
a &= b + c \\
d &= e
\end{aligned}
$$
- Type
/equationto start an equation on its own lines, with the caret ready inside it. - There is no space just inside the dollar signs of an inline equation:
$x$, not$ x $. That is how Garnet tells maths from money, soIt cost $5 and $10stays as written. - To write a dollar sign that could be read as maths, put a backslash before it:
\$. $$…$$in the middle of a sentence shows the equation on its own line.- An opening
$$with no closing$$stays as text, so a stray$$never hides the rest of your note. - If an equation has a mistake, it shows in red with the reason when you hover over it.
Chemistry. \ce{…} writes chemical formulas and equations, and \pu{…} writes units:
Water is $\ce{H2O}$. Burning methane: $$\ce{CH4 + 2O2 -> CO2 + 2H2O}$$
Pasted maths. AI assistants such as ChatGPT and Claude write maths as \(x^2\) inside a sentence and \[ … \] on its own lines. Garnet shows those as equations too, so pasted answers read correctly. Escaped brackets around plain words, such as \[draft\], stay as brackets. A code block named math or latex is also shown as an equation, as GitHub does.
Diagrams
A code block named mermaid becomes a diagram.
```mermaid
flowchart LR
Conversation --> Transcript --> Selects --> Cut
```
The diagram types built into Mermaid work, including flowcharts, sequence, class, state, entity-relationship, Gantt, pie, journey, mind map, timeline, quadrant and Git diagrams. Types that need a separate Mermaid add-on, such as ZenUML, do not. Diagrams use Garnet's colours and are redrawn when you switch between light and dark mode.
If a diagram has a mistake, Garnet shows the reason above the source so you can fix it. Mermaid runs in strict mode: links and scripts inside diagrams are disabled, HTML inside a label shows as plain text, and a diagram cannot change its own theme, colours or fonts.
Emoji
Type : and a name to pick an emoji while writing. Shortcodes written in the text, such as :tada:, show as the emoji (🎉) in Pretty and Preview. Unknown names stay as typed.
Compatibility elements
These come from Obsidian and similar tools. They are here so the notes you bring to Garnet read the same.
Wiki links
[[Note title]] links to a note by its title. [[Note title|shown text]] changes what the link says. In Preview, a link to a note that does not exist yet is marked so you can spot it. See Links, Backlinks, and Connections.
Mentions
@Aiko Sato mentions a person in your Space. In Preview, a name that matches nobody yet is marked so you can spot it.
Inline tags
#documentary or a nested #documentary/autumn anywhere in the text is a tag. A tag needs at least one letter, so #2024 stays a number. Tags in code are ignored. In the editor, typing # and a letter suggests the tags your Space already uses; a # at the start of a line with a space after it is still a heading.
Callouts
A quote that starts with [!type] becomes a callout.
> [!tip] Faster transcription
> Slow the audio to 0.8× and type through without stopping.
Types include note, info, tip, success, question, warning, failure, danger, bug, example and quote. Add - after the type ([!question]-) to start it folded, or + to start it open and foldable.
Embedded pictures
![[photo.png]] shows a picture from your Space's assets folder. ![[photo.png|300]] sets its width in pixels. A path, such as ![[assets/trips/photo.png]], is used as written.
Note transclusion
![[Other note]] shows another note's text inside this one. It stays up to date when that note changes.
![[Other note#Heading]]shows only that heading's section.![[Other note#^block-id]]shows the paragraph marked^block-idat its end.
A note that embeds itself is not repeated inside its own embed. Embeds go three levels deep, and one note shows at most 60 embeds; past either limit, the embed shows a line inviting you to open the note instead.
Excalidraw drawings
Drawings made with the Excalidraw plugin for Obsidian are saved as .excalidraw.md files. Garnet cannot draw them, but it keeps every drawing exactly as it is.
- Opening a drawing shows a card that says what it is and lists the words written in the drawing, instead of the drawing's compressed data.
![[Kitchen plan.excalidraw]]in another note shows the drawing as a picture when your Space'sassetsfolder has the picture Excalidraw exported of it:Kitchen plan.excalidraw.svg,Kitchen plan.excalidraw.png,Kitchen plan.svgorKitchen plan.png. The Excalidraw plugin can save these pictures for you each time a drawing changes; its auto-export settings are in the plugin's settings in Obsidian. Without a picture, the embed shows the card.- To change a drawing, open it with Excalidraw in Obsidian.
Hidden comments
%%like this%% and <!-- like this --> are notes to yourself. They stay in the file and never show in Preview. In Pretty they appear only on the line you are editing. A comment can span several lines, blank lines included. Comments are also left out of shared links. Inside code, the same characters are kept as code.
Dataview queries
A code block named dataview shows live results from your Space. Garnet reads a safe, read-only part of the Dataview Query Language (DQL). A query can never change a note.
```dataview
TABLE file.ctime AS "Started", length(file.tags) AS "Tags"
FROM #research
SORT file.ctime DESC
LIMIT 5
```
Query types
LIST,LIST <expression>andLIST WITHOUT ID <expression>TABLE <expression> AS "Header", …andTABLE WITHOUT ID …. The first column is the file, unless you writeWITHOUT ID.TASKlists task-list items, grouped by note. The checkboxes are read-only here; tick tasks in their note. Dates and priority markers such as 📅 and ⏫ at the end of a task are taken out of its text, and its due date shows beside it. Tasks on numbered lists, inside quotes, and with other markers such as[/]or[-]are included.CALENDAR <date expression>, for exampleCALENDAR file.cday, shows a month grid with each note on its date. Only months with notes are shown, oldest first. Weeks start on Monday, and today is highlighted.CALENDARtakes every clause below exceptGROUP BY.
Where results come from (FROM)
#tagmatches the tag and its nested tags, so#familyalso matches#family/sato."folder"matches a folder and its subfolders, or a single note ("notes/my-note").[[Note]]matches notes that link to Note.outgoing([[Note]])matches notes that Note links to.[[]]or[[#]]stands for the current note, soFROM [[]]lists the notes that link to it.- Combine sources with
and,or,-(not) and parentheses. As in Dataview,andandorare read left to right with no priority between them, so#a or #b and "notes"means(#a or #b) and "notes". Use parentheses to say otherwise.
Clauses can appear in any order and more than once, and apply in the order written:
WHERE <condition>SORT <expression> ASC|DESC, with several keys allowedGROUP BY <expression> [AS name]FLATTEN <expression> [AS name]LIMIT <number>
// comments are allowed.
Fields
- Your note's properties, such as
type,tagsandtitle, any custom property in the file's frontmatter, and inline fields written asKey:: valueon a line of their own or as[key:: value]inside a sentence. file.name,file.path,file.folder,file.link,file.tags,file.ctime,file.mtime,file.cday,file.mday,file.day,file.inlinks,file.outlinksandfile.tasks.thisfor the current note, and[[Note]].fieldfor a field of another note.- Task fields:
text,completed,checked,status(the character in the brackets),tags,section(the heading the task sits under), plus inline[due:: …]fields and 📅 ⏳ 🛫 ✅ dates.
Values and operators
- Numbers,
"text",true,false,null,[[links]], lists such as[1, 2]and objects such as{ key: value }. Write[ [1, 2] ]for a list inside a list, because[[1, 2]]reads as a link. - Dates:
date(2026-09-18),date(2026-09),date(today),date(now),date(tomorrow),date(sow)(start of week) and similar. Dates have parts such as.year,.month,.week,.weekdayand.quarter. - Durations:
dur(7 days). - Comparisons:
= != < <= > >=. Logic:and,or,!, read left to right; use parentheses to group. Arithmetic:+ - * / %, including dates plus or minus durations.
Functions
- Text:
contains,icontains,econtains,containsword,lower,upper,startswith,endswith,split,replace,substring,truncate,padleft,padright,join,string. - Patterns:
regexmatch,regextest,regexreplace. To keep a note from freezing the app, a pattern cannot use backreferences or lookbehind, cannot repeat a group that contains|or another repetition, and may use only a few*or+. - Numbers:
round,floor,ceil,trunc,sum,product,min,max,average,number,currencyformat. - Lists:
length,list,unique,sort,reverse,flat,slice,firstvalue,nonnull,minby,maxby,reduce(list, "+"). - Dates:
date,dur,dateformat,durationformat,striptime,localtime. - Other:
default,choice,typeof,object,extract,link,elink,meta,display.
These also take a small function, written (x) => … or x => …: filter(list, fn), map(list, fn), any(list, fn), all(list, fn) and none(list, fn). For example, filter(file.tasks, (t) => !t.completed) keeps the open tasks.
Results show up to 1,000 rows, with a note when there are more. A grouped table's first column is headed "Group".
Not supported: reduce with a function of your own, embed, and queries written in JavaScript.
DataviewJS blocks (dataviewjs) are kept in the note and shown as code. Garnet never runs code written in a note.
Inline Dataview values
Inline code that starts with = shows the value of an expression instead of the code.
This note was started on `= this.file.cday` and links to `= length(this.file.outlinks)` other notes.
- Any Dataview expression works, up to 1,000 characters, including dates, links and every function above.
this, or a field name on its own, means the current note:= file.nameand= this.file.nameare the same.- Code starting with
==or=>stays code. - In Pretty the value shows on every line except the one you are editing, where the code comes back.
- In Preview, an expression with a mistake stays as code, underlined, and hovering over it shows the reason. In Pretty it stays as plain code.
Tasks queries
A code block named tasks lists task-list items from your whole Space. It understands the commonly used part of the query language of the Tasks plugin for Obsidian. Like Dataview, it only reads.
```tasks
not done
due before next week
sort by due
group by folder
```
Write one instruction per line, in any letter case. Blank lines and lines starting with # are ignored.
Status: done or not done. A cancelled task, [-], counts as done; any other marker, such as [/], counts as not done.
Dates
- Tasks mark dates with emoji at the end of the task: 📅 due, ⏳ scheduled, 🛫 start, ✅ done, ➕ created and ❌ cancelled.
[due:: 2026-09-24]also works, anywhere in the task. - Filter with a date field (
due,scheduled,starts,done,created,cancelled, orhappensfor the earliest of start, scheduled and due), thenbefore,after,on,on or before,on or afterorin, then a date:due before tomorrow. With no relation word,onis assumed. has due dateandno due datework for every date field; for the start date writehas start date.- A task without that date does not match a date filter. The start date is the exception, as in the Tasks plugin:
starts before tomorrowalso matches tasks with no start date. - Dates can be written as
2026-09-24, as a range2026-09-01 2026-09-30, or in words:today,tomorrow,yesterday,friday,next monday,in 3 days,in two weeks,2 weeks ago,end of month,start of next month, andthis,nextorlastfollowed byweek,monthoryear.
Text: path, description, tag (or tags), heading, folder or filename, then includes or does not include, then the text. Matching ignores letter case, and the # in a tag is optional. heading is the nearest heading above the task. has tags and no tags also work.
This note: {{query.file.path}}, {{query.file.folder}}, {{query.file.filename}}, {{query.file.filenameWithoutExtension}} and {{query.file.root}} stand for the note that holds the query, as in path includes {{query.file.path}}.
Priority: priority is high, or with not, above or below: priority is above medium. The levels are highest 🔺, high ⏫, medium 🔼, normal (no marker), low 🔽 and lowest ⏬.
Recurring: is recurring or is not recurring, from 🔁.
Combining filters: (due today) OR (priority is high), and also AND, XOR and NOT (…). The brackets are needed and can be nested.
Sorting: sort by due, scheduled, start, done, created, happens, priority, urgency, path, description, status, filename, heading or tag, with reverse to flip it. Write several sort by lines to sort by several things. Tasks without the date go last, reversed or not. With no sort by, tasks come not-done first, then by due date, priority, path and line. Garnet does not work out the plugin's urgency score; due date then priority stands in for it.
Grouping: group by path, folder, filename, heading, due, scheduled, start, done, created, happens, priority, recurring, tags or status. Several group by lines make nested groups. A task with two tags appears under both, and tags group without regard to letter case.
Limit: limit 10 or limit to 10 tasks, and limit groups 5 for each group.
Long lines: end a line with \ to continue the instruction on the next line.
Explain: explain adds a line saying what the query filters on, in plain words.
Lines that only change how the plugin lays out results are accepted and have no effect: hide …, show …, short mode, full mode, ignore global query and exclude sub-items. An instruction Garnet does not support shows an error naming the line.
Not supported: regular-expression filters, filter by function, group by function, sort by function, status.type, status.name, root, backlink, task ids and dependencies, and custom status names.
Known limitations
- Garnet shows syntax it does not know exactly as written, so nothing in the file is lost.
- Other apps may show Garnet's extended and compatibility elements as plain text. Your notes stay readable either way. A shared link's page is the same: it shows standard Markdown, so maths, callouts, inline footnotes and
[TOC]appear there as written. - Equations use KaTeX, which covers most LaTeX maths. A few MathJax-only commands, and
\newcommanddefinitions shared between equations, are not supported. - Excalidraw drawings are kept but not drawn; see Excalidraw drawings.
- Emoji shortcodes cover a hand-picked set of common emoji. Other emoji can be typed or pasted directly.
- Dataview and Tasks results are worked out on your device from your Space. The first query in a session reads your notes in the background, and results fill in while it does; Spaces of more than 10,000 items are read up to that number. Other people who can only see a shared page see the query itself.
- Dates and times in query results are shown in your device's time zone.
Still need help?
Contact support@garnet.md or visit r/GarnetMD.
Still need help?
Email support for private account or Space questions. Use Reddit only for public community discussion.