Quick tip: Press Ctrl/Cmd+E to toggle between Edit and Preview mode. Enable Live Preview (Settings → Editor) to see rendered Markdown as you type.

Advanced / Power Users

Obsidian Markdown Guide

The complete Markdown syntax reference for Obsidian — standard formatting, Obsidian-specific extensions, callouts, code blocks, Mermaid diagrams and LaTeX equations.

Headings

Markdown
# H1 — Page title (use once per note)
## H2 — Major section
### H3 — Subsection
#### H4 — Minor section
##### H5
###### H6

Obsidian uses H1 for the note title in the outline panel. Recommended practice:

Use # once per note (matching the filename) — or skip H1 and let the filename serve as the title.
The Outline core plugin (View → Outline) generates a table of contents from your headings automatically.
You can fold/collapse headings by clicking the arrow in the gutter — useful for long notes.

Text Formatting

Markdown
**bold text**
*italic text*
***bold and italic***
~~strikethrough~~
==highlight==
`inline code`
> blockquote
---  (horizontal rule)
\*escaped asterisk\*

Bold: **text** or __text__

Italic: *text* or _text_

Highlight: ==text== renders with a yellow background — Obsidian-specific, not standard Markdown.

Strikethrough: ~~text~~ — GFM extension.

Subscript: H~2~O (requires the Markdown Formatting Assistant plugin or Pandoc export).

Superscript: E=mc^2^ (same caveat).

Lists & Task Checkboxes

Markdown
- Bullet item
- Another item
  - Nested item (indent 2 spaces)
    - Deeper nesting

1. Ordered item
2. Second item
   1. Nested ordered

- [ ] Unchecked task
- [x] Completed task
- [/] In progress (Obsidian)
- [-] Cancelled (Obsidian)
- [>] Forwarded (Obsidian)

Task checkbox states

Obsidian supports extended checkbox states beyond standard [ ] and [x]:

[ ]To do
[x]Done
[/]In progress
[-]Cancelled
[>]Forwarded
[?]Question
[!]Important
[*]Star

These extended states are styled by your theme and the Tasks plugin can filter by them.

Callouts (Admonitions)

Callouts are Obsidian's styled alert boxes — more powerful than plain blockquotes. They render with icons and colours based on their type.

Markdown
> [!note]
> This is a note callout.

> [!warning] Custom Title
> Warning with a custom title.

> [!tip]+ Collapsible (open by default)
> Content here.

> [!danger]- Collapsible (closed by default)
> Hidden until clicked.

All callout types:

[!note] [!abstract] [!info] [!tip] [!success] [!question] [!warning] [!failure] [!danger] [!bug] [!example] [!quote]

Callout syntax rules

First line: > [!type] — the type determines icon and colour.
Add a custom title after the type: > [!note] My Title
Make it collapsible with + (open) or - (closed) after the type.
Nest callouts inside each other by doubling the > prefix.
Callouts render in Reading view and Live Preview but not in Source mode.

Code Blocks

Markdown
```python
def greet(name):
    return f"Hello, {name}!"

print(greet("Obsidian"))
```

```dataview
TABLE rating, status
FROM #book
WHERE status = "reading"
SORT rating DESC
```

```mermaid
graph LR
  A[Idea] --> B[Note]
  B --> C[Linked Note]
```

Supported syntax highlighting languages

Obsidian uses Prism.js for highlighting. Common supported languages:

python javascript typescript php bash sql css html json yaml rust go java c cpp ruby swift kotlin dataview mermaid
dataview code blocks are processed by the Dataview plugin as live queries.
mermaid blocks render as diagrams natively in Obsidian.

Tables

Markdown
| Column A  | Column B  | Column C  |
|-----------|:---------:|----------:|
| Left      | Centre    | Right     |
| aligned   | aligned   | aligned   |
| row 3     | data      | data      |

Alignment syntax

|---| — left aligned (default)
|:--:| — centre aligned
|---:| — right aligned

💡 The Advanced Tables community plugin adds an Excel-like tab key navigation and automatic column alignment — highly recommended for anyone who uses tables frequently.

Mermaid Diagrams

Obsidian renders Mermaid diagrams natively — no plugin needed. Place Mermaid code inside a fenced code block with the mermaid language tag.

Markdown
```mermaid
flowchart TD
  A[Start] --> B{Decision}
  B -->|Yes| C[Do this]
  B -->|No| D[Do that]
  C --> E[End]
  D --> E
```
Markdown
```mermaid
sequenceDiagram
  Alice->>Bob: Hello
  Bob-->>Alice: Hi!
  Alice->>Bob: How are you?
```

Supported diagram types

flowchartProcess flows and decision trees
sequenceDiagramSystem interaction sequences
classDiagramObject-oriented class relationships
ganttProject timelines
piePie / donut charts
gitGraphGit branch visualisation
mindmapMind maps (Mermaid 9+)
timelineHistorical timelines

LaTeX / Mathematical Equations


Warning: Undefined variable $E in /var/www/gold/data/www/studio-obsidian.com/obsidian-markdown-guide/index.php on line 206
Markdown
# Inline equation
Einstein's formula:  = mc^2$

# Block equation
$$
\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}
$$

# Matrix
$$
\begin{pmatrix}
  a & b \\
  c & d
\end{pmatrix}
$$

MathJax rendering

Inline: wrap with single $ — renders within a paragraph.
Block: wrap with $$ — renders centred on its own line.
Obsidian uses MathJax — all standard LaTeX math commands are supported.
The Latex Suite plugin adds live snippets so you can type mk to wrap text in $ $ automatically.

Frontmatter / Properties (YAML)

Markdown
---
title: My Note
date: 2026-04-01
status: active
tags:
  - project
  - design
rating: 4
author: Jane Doe
url: https://example.com
aliases:
  - My Note Alias
---

Note content starts here.

Key frontmatter fields

aliases:Let other [[wikilinks]] resolve to this note under different names.
tags:Adds tags queryable by Dataview and the tag pane — same as inline #tags.
cssclasses:Apply CSS classes to the note for custom styling.
publish:Set true/false to control which notes Obsidian Publish includes.

All custom fields are queryable with Dataview: TABLE rating WHERE status = "active"

Power User Markdown Tips

Inline Dataview fields

Add metadata anywhere in a note body with rating:: 4 — Dataview reads these as field values without requiring frontmatter YAML.

Footnotes

Text with footnote[^1] then later [^1]: The footnote text. Obsidian renders them as clickable superscripts.

Comments (hidden text)

%% This is a comment %% — Obsidian shows it in editing mode but hides it in Reading view and Publish.

Definition lists

Term\n: Definition — supported by some Obsidian themes; may require the Definition List plugin.

Transclusion (partial embeds)

![[Note#Section]] embeds only a specific heading section, and ![[Note^block-ref]] embeds a single block.

Multi-line blockquotes

Prefix each line with >. Add an empty > line to create paragraph breaks within the same blockquote.