📘 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 press Ctrl/Cmd + E to 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 typeYou getNotes
**bold**boldShortcut: Ctrl/Cmd + B
*italic* or _italic_italicShortcut: Ctrl/Cmd + I
***bold italic***bold italicBoth together
~~strikethrough~~strikethroughCross things out
==highlight==highlightObsidian-specific, great for key terms
`inline code`inline codeFor code, commands, filenames
<u>underline</u>underlineUses HTML; Markdown has no native underline
H~2~OH2OSubscript
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.

  1. Wake up
  2. Brush teeth
  3. 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
  • Mathematics
  1. Plan
    1. Pick a topic
    2. Gather resources
  2. 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 (also summary, 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, done also work.)

Why does binary search need sorted data?

question (also help, faq). Great for questions to revisit.

Be careful

Watch out for off-by-one errors in loops!

Wrong approach

failure (also fail, missing). Good for things that didn’t work.

Never do this

danger (also error). Strongest warning.

Known bug

Good for debugging notes in programming classes.

Example

example is great for worked examples in class notes.

Albert Einstein

quote (also cite). 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.

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 -la

No 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")
```

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.

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.

Use [text](url):

Obsidian’s website

Or a bare URL, which becomes clickable automatically: https://obsidian.md

You can also wrap a URL in angle brackets: https://obsidian.md

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:

SyntaxWhat 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: col1000/obsidian-markdown-guide


10. Images

Three ways:

  1. Drag and drop or paste (Ctrl/Cmd + V) an image into your note. Obsidian does the rest.
  2. Obsidian style: ![[image.png]], or sized: ![[image.png|400]]
  3. Standard Markdown: ![alt text](image.png), or from the web: ![alt text](https://example.com/pic.png)

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 StructureAccessSearchInsert
ArrayO(1)O(n)O(n)
Linked ListO(n)O(n)O(1)
Hash TableO(1)O(1)O(1)

Alignment: add colons in the divider row.

LeftCenterRight
abc
applebananacherry

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 typeYou 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.

cs daily idea exam-prep

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:

TypeExampleNotes
Textsubject: Data StructuresPlain words
Numberdifficulty: 3Just a number
Checkboxreviewed: falsetrue or false
Datedate: 2026-10-12Format YYYY-MM-DD
Lista - list under the nameFor tags, aliases, etc.

Special ones Obsidian understands:

  • tags: the note’s tags
  • aliases: alternate names, so [[BS]] also finds this note
  • cssclasses: 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: press Ctrl/Cmd + P and 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)

ShortcutAction
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 + Click on 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

GoalSyntax
Heading# H1 ## H2 ### H3
Bold / Italic**bold** / *italic*
Highlight==text==
Strikethrough~~text~~
Bullet list- item
Numbered list1. 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![alt](path)
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 IDtext ^my-id
Escape\*

You made it! 🎉

You now know nearly everything about Markdown and Obsidian syntax.
Next steps:

  1. Create a new note and write a bit about your day using headings, bold text, and a checklist.
  2. Make one note per subject, then link them with [[ ]].
  3. Try a callout and a code block in your first CS note.
  4. 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.

Footnotes

  1. This is the footnote text. It appears at the bottom of the page in Reading view. ↩

  2. Footnotes can have names instead of numbers. ↩