📘 The Complete Beginner’s Guide to Markdown in Obsidian
How to use this guide
Each section has a short explanation, followed by a live example that uses the syntax.
To see the raw syntax of any example, click into it in Live Preview mode, or switch to Source mode (click the book/pencil icon at the top right, or pressCtrl/Cmd + Eto toggle Reading view).
Try editing the examples. Breaking things is the fastest way to learn.
0. What is Markdown?
Markdown is a way of writing plain text that can be turned into nicely formatted text. Instead of clicking a “Bold” button, you type **bold**. The file stays plain text (so it will open in any app, forever), and Obsidian shows it prettily.
Obsidian is an app that stores your notes as plain .md files in a folder (called a vault) and lets you link them together.
The three views in Obsidian:
- Live Preview: formatting appears as you type (default). Raw syntax shows when your cursor is on that line.
- Source mode: you see all the raw symbols.
- Reading view: fully rendered, not editable.
1. Headings
Put # symbols at the start of a line, then a space. More # means a smaller heading. There are 6 levels.
Headings also build your note’s outline (open the Outline panel in the sidebar) and let you fold sections.
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Good habit
Use one
#Heading 1 as the note’s title, then##for main sections,###for sub-sections.
2. Paragraphs and Line Breaks
A paragraph is just text. To start a new paragraph, leave a blank line between them.
This is paragraph one.
This is paragraph two.
To break a line without starting a new paragraph, end the line with two spaces or press Shift + Enter.
Like this line,
and this one right below it.
3. Text Formatting
Wrap text in symbols to style it:
| You type | You get | Notes |
|---|---|---|
**bold** | bold | Shortcut: Ctrl/Cmd + B |
*italic* or _italic_ | italic | Shortcut: Ctrl/Cmd + I |
***bold italic*** | bold italic | Both together |
~~strikethrough~~ | Cross things out | |
==highlight== | highlight | Obsidian-specific, great for key terms |
`inline code` | inline code | For code, commands, filenames |
<u>underline</u> | underline | Uses HTML; Markdown has no native underline |
H~2~O | H | Subscript |
x^2^ | x^2^ | Superscript |
Mixing example: This is bold with some italic inside it and a highlighted ~~mistake~~ idea.
4. Lists
4.1 Bullet list
Start a line with -, *, or + followed by a space.
- Apples
- Bananas
- Cherries
4.2 Numbered list
Start with a number, a dot, and a space. Obsidian auto-numbers for you.
- Wake up
- Brush teeth
- Study
4.3 Nested lists
Press Tab to indent an item (make it a child), and Shift + Tab to go back out.
- Computer Science
- Data Structures
- Arrays
- Linked Lists
- Algorithms
- Sorting
- Searching
- Data Structures
- Mathematics
- Plan
- Pick a topic
- Gather resources
- Execute
- Take notes
- Practice problems
4.4 Task list (checkboxes)
Use - [ ] for an unchecked box and - [x] for a checked one. Click the box to toggle it.
- Install Obsidian
- Open this guide
- Make my first note
- Make a note for each of my subjects
- Learn all the syntax
5. Blockquotes
Start a line with > to make a quote. Great for quoting a textbook, a lecturer, or a definition.
The best way to learn is to teach.
This line is part of the same quote.
Nested quotes use >>:
Level one
Level two
Level three
6. Callouts ✨ (Obsidian’s superpower)
A callout is a blockquote with a special label on the first line: > [!type]. It becomes a coloured, icon-topped box. Perfect for definitions, warnings, examples, and exam tips.
The first line has the type, and an optional custom title after it. The following lines start with > too.
Note
A plain note. Good for general side information.
Summary
abstract(alsosummary,tldr) is good for a short summary at the top of a note.
Info
Extra information or context.
Todo
Something you need to do.
Study tip
Use spaced repetition: review notes after 1 day, 3 days, 1 week.
Done
Use for completed things or correct answers. (
check,donealso work.)
Why does binary search need sorted data?
question(alsohelp,faq). Great for questions to revisit.
Be careful
Watch out for off-by-one errors in loops!
Wrong approach
failure(alsofail,missing). Good for things that didn’t work.
Never do this
danger(alsoerror). Strongest warning.
Known bug
Good for debugging notes in programming classes.
Example
exampleis great for worked examples in class notes.
Albert Einstein
quote(alsocite). Imagine a famous quote here.
6.1 Foldable callouts
Add - right after the type to make it collapsed by default, or + to make it expanded but collapsible. Click the title to toggle.
Click me to reveal the answer (collapsed by default)
Hidden content like this is perfect for flashcard-style self-testing!
I am open, but you can collapse me
The
+means it starts expanded.
6.2 Nested callouts
You can put callouts inside callouts using extra >.
Outer callout
Here is some text.
Inner callout
And this one lives inside it.
6.3 Callout with rich content
Everything works inside callouts: lists, bold, code, math, links.
Big-O Quick Facts
- O(1): constant time
- O(log n): logarithmic, e.g. binary search
- O(n): linear, e.g. a single loop
- O(n²): quadratic, e.g. nested loops
7. Code
7.1 Inline code
Wrap with single backticks: `. Example: use the print() function, or run git status.
7.2 Code blocks
Use three backticks on a line by itself, then your code, then three backticks again. Put the language name right after the opening backticks to get syntax colouring.
def greet(name):
return f"Hello, {name}!"
print(greet("World"))const add = (a, b) => a + b;
console.log(add(2, 3));#include <iostream>
int main() {
std::cout << "Hello, CS!" << std::endl;
return 0;
}cd ~/projects
ls -laNo language? Still works, just without colours:
Plain text block.
Spaces are kept exactly as typed.
7.3 Showing a code block inside a code block
To display triple backticks literally, wrap them in four backticks:
```python
print("I am a code block shown as text")
```8. Links
8.1 Internal links (the heart of Obsidian)
Wrap a note’s name in double square brackets: [[Note Name]]. Obsidian suggests notes as you type [[. If the note doesn’t exist, the link appears faded; click it to create the note.
- Link to a note: Data Structures
- Link with a custom display text (an alias): my DS notes
- Link to a heading inside a note: Data Structures > Arrays
- Link to a heading in this note: 7. Code
- Link to a specific paragraph (block):
[[Data Structures#^some-id]], explained in section 8.3
Why links matter
The more you link, the more your notes become a connected web. Open the Graph view (left sidebar) to see it, and the Backlinks panel to see which notes link to the current note.
8.2 External links (websites)
Use [text](url):
Or a bare URL, which becomes clickable automatically: https://obsidian.md
You can also wrap a URL in angle brackets: https://obsidian.md
8.3 Block links
Any paragraph can be linked to. Add a space and a block ID (starting with ^) at the end of the paragraph:
This is an important definition I want to link to later.
Now from any note you could write [[Obsidian & Markdown Guide#^important-definition]] to jump straight here. (Tip: type [[Note Name#^ and Obsidian will let you pick a block.)
9. Embeds (showing one note inside another)
Put an exclamation mark ! in front of a link to embed the content instead of just linking it. Shown here as code so this guide doesn’t fill up with errors:
| Syntax | What it does |
|---|---|
![[Note Name]] | Shows the whole note right here |
![[Note Name#Heading]] | Shows only that section |
![[Note Name#^block-id]] | Shows only that block |
![[photo.png]] | Shows an image from your vault |
![[photo.png|300]] | Image resized to 300 px wide |
![[document.pdf]] | Shows a PDF viewer |
![[document.pdf#page=3]] | Opens the PDF at page 3 |
![[song.mp3]] | Embeds an audio player |
Live example, embedding a block from this very note:
Circular transclusion detected: random-notes/obsidian-markdown-guide
10. Images
Three ways:
- Drag and drop or paste (
Ctrl/Cmd + V) an image into your note. Obsidian does the rest. - Obsidian style:
![[image.png]], or sized:![[image.png|400]] - Standard Markdown:
, or from the web:
For class notes
Take a screenshot of a diagram on the board or slides, paste it straight in, and write your explanation underneath.
11. Tables
Use | to separate columns and - to make the header divider. The cells don’t have to line up perfectly, but it’s nicer to read if they do.
| Data Structure | Access | Search | Insert |
|---|---|---|---|
| Array | O(1) | O(n) | O(n) |
| Linked List | O(n) | O(n) | O(1) |
| Hash Table | O(1) | O(1) | O(1) |
Alignment: add colons in the divider row.
| Left | Center | Right |
|---|---|---|
| a | b | c |
| apple | banana | cherry |
Table shortcut
Right-click in your note and choose Insert → Table, or use the command palette (
Ctrl/Cmd + P) and search for “table”. Type|inside a table cell as\|.
12. Horizontal Rules (divider lines)
Three dashes, asterisks, or underscores on their own line make a line across the page.
13. Footnotes
Mark the spot with [^1] and define the footnote anywhere (usually at the bottom of the note) with [^1]: text.
The speed of light is about 299,792 km/s.1 Binary search runs in logarithmic time.2
You can also write an inline footnote like this.^[This footnote is written right inside the sentence.]
14. Comments (invisible notes to yourself)
Text inside %% ... %% is hidden in Reading view. It’s visible only when editing. Good for reminders, TODOs, and drafts.
This sentence is visible. This is visible again.
There’s also the HTML-style comment, which also works:
15. Math (LaTeX) 🧮
Obsidian renders maths written in LaTeX between dollar signs.
- Inline math:
$...$→ The area of a circle is . - Block math:
$$...$$on its own lines → centred and larger.
Some useful bits for CS and maths:
| You type | You get |
|---|---|
$O(n \log n)$ | |
$x^2$ and $x_i$ | and |
$\frac{a}{b}$ | |
$\sqrt{x}$ | |
$\leq$, $\geq$, $\neq$ | , , |
$\rightarrow$, $\Rightarrow$ | , |
$\forall$, $\exists$ | , |
$\in$, $\subseteq$, $\cup$, $\cap$ | , , , |
$\land$, $\lor$, $\neg$ | , , |
$\Theta(n)$, $\Omega(n)$ | , |
A famous one:
16. Diagrams with Mermaid 📊
Obsidian can draw diagrams from text. Make a code block with the language mermaid.
16.1 Flowchart
graph TD A[Start] --> B{Is the list sorted?} B -- Yes --> C[Use binary search] B -- No --> D[Sort it first] D --> C C --> E[Done]
16.2 Sequence diagram
sequenceDiagram participant You participant Server You->>Server: Request page Server-->>You: Send HTML
16.3 Other diagram types
Mermaid also supports class diagrams (classDiagram), state machines (stateDiagram-v2), Gantt charts (gantt), pie charts (pie), and more. Search “Mermaid docs” online for the full syntax.
17. Tags
Put # directly in front of a word (no space) to create a tag. Tags help you group notes across folders. Click a tag to search for all notes that use it.
Nested tags use /: cs/algorithms cs/os personal/journal
Rules: tags can contain letters, numbers, _, -, and /. They need at least one non-number character (so #1984 isn’t a tag but #y1984 is). No spaces.
Tags or links?
A rough rule of thumb: use links for specific connections between ideas (“this relates to that”) and tags for broad categories or status (
#todo,#cs,#review).
18. Properties (YAML front matter)
Look at the very top of this note: that block between the two --- lines is called Properties (also called front matter or YAML). It stores metadata about the note. Obsidian displays it as a neat table of fields.
Here is the raw form (shown as code):
---
title: Binary Search Notes
subject: Data Structures
date: 2026-10-12
tags:
- cs
- algorithms
aliases:
- BS
- binary search
difficulty: 3
reviewed: false
---What each field type looks like:
| Type | Example | Notes |
|---|---|---|
| Text | subject: Data Structures | Plain words |
| Number | difficulty: 3 | Just a number |
| Checkbox | reviewed: false | true or false |
| Date | date: 2026-10-12 | Format YYYY-MM-DD |
| List | a - list under the name | For tags, aliases, etc. |
Special ones Obsidian understands:
tags: the note’s tagsaliases: alternate names, so[[BS]]also finds this notecssclasses: custom styling (advanced)
Rules
Properties must be at the very top of the file, enclosed in
---lines, and use a colon followed by a space (key: value). Easiest way: pressCtrl/Cmd + Pand run “Add file property”.
19. Escaping Special Characters
Want to type a symbol without it doing its Markdown magic? Put a backslash \ before it.
*This is not italic*
# This is not a heading
1. This is not a numbered list
[[Not a link]]
Characters you may need to escape: \ * _ { } [ ] ( ) # + - . ! |
20. Useful Obsidian Features and Shortcuts
Keyboard shortcuts (use Cmd instead of Ctrl on Mac)
Shortcut Action Ctrl + NNew note Ctrl + OQuick switcher (jump to any note) Ctrl + PCommand palette (do anything) Ctrl + EToggle Reading view / editing Ctrl + B/Ctrl + IBold / Italic Ctrl + KInsert link Ctrl + Clickon a linkOpen link in a new tab Ctrl + FFind in current note Ctrl + Shift + FSearch across the whole vault Ctrl + ,Open settings Tab/Shift + TabIndent / outdent list item
Other things to explore:
- Daily notes: a core plugin that creates a note for each day (perfect for everyday notes).
- Templates: a core plugin to insert pre-made note structures (see section 21).
- Graph view: a visual map of how your notes link together.
- Backlinks panel: shows every note that links to the current one.
- Canvas: a free-form whiteboard for arranging notes and images.
- Folding: hover next to any heading or list item and click the small arrow to collapse it.
- Community plugins: Settings → Community plugins. Popular ones for students: Dataview, Calendar, Excalidraw, Spaced Repetition, Templater.
21. Ready-Made Templates for You
21.1 Class notes template (copy this for every lecture)
---
subject: Data Structures
date: 2026-10-12
lecture: 5
topic: Binary Trees
tags:
- cs
- lecture
---
# Lecture 5: Binary Trees
> [!abstract] Summary
>
> One or two sentences on what this lecture was about.
## Key Concepts
- **Term**: definition
- **Term**: definition
## Detailed Notes
### Sub-topic 1
Explain it in your own words.
> [!example] Example
>
> A worked example here.
```python
# code example
```
### Sub-topic 2
$$ formula here $$
## Questions I Still Have
> [!question]- What I didn't understand
>
> Write it here and look it up later.
## To Do
- [ ] Do practice problems
- [ ] Review slides
- [ ] Read chapter 5
## Related Notes
- [[Binary Search]]
- [[Trees]]21.2 Daily note template
---
date: 2026-10-12
tags:
- daily
---
# Monday, 12 October 2026
## 🎯 Top 3 Priorities
- [ ]
- [ ]
- [ ]
## 📅 Schedule
-
## 📝 Notes & Thoughts
## 🙏 Gratitude / Wins
-
## 🔁 Tomorrow
- Use them
Turn on Settings → Core plugins → Templates, save these in a folder called
Templates, and insert one with the command palette: “Templates: Insert template”.
22. 🧾 One-Page Cheat Sheet
| Goal | Syntax |
|---|---|
| Heading | # H1 ## H2 ### H3 |
| Bold / Italic | **bold** / *italic* |
| Highlight | ==text== |
| Strikethrough | ~~text~~ |
| Bullet list | - item |
| Numbered list | 1. item |
| Checkbox | - [ ] task |
| Quote | > text |
| Callout | > [!note] Title |
| Foldable callout | > [!note]- Title |
| Inline code | `code` |
| Code block | ```python … ``` |
| Link to note | [[Note]] |
| Link with alias | [[Note|text]] |
| Link to heading | [[Note#Heading]] |
| Website link | [text](https://url) |
| Embed | ![[Note]] or ![[img.png]] |
| Image |  |
| Table | | a | b | with a divider row |
| Divider | --- |
| Footnote | [^1] and [^1]: text |
| Comment | %% hidden %% |
| Inline math | $x^2$ |
| Block math | $$ ... $$ |
| Diagram | ```mermaid |
| Tag | #tag or #nested/tag |
| Block ID | text ^my-id |
| Escape | \* |
You made it! 🎉
You now know nearly everything about Markdown and Obsidian syntax.
Next steps:
- Create a new note and write a bit about your day using headings, bold text, and a checklist.
- Make one note per subject, then link them with
[[ ]].- Try a callout and a code block in your first CS note.
- Open the Graph view after a week and enjoy watching your notes connect.
When you’re done learning from this note, feel free to keep it as a reference, or delete it.