Markdown

Basic syntax

Heading

A line that starts with # is a heading. More # means a smaller heading.

# H1 - Largest
## H2 - Medium
### H3 - Small

Text formatting

**bold**
*italic*
~~strikethrough~~
`code`

Lists

Use - for bullets and numbers for ordered lists. Indent to nest items.

1. Numbered item
2. Second item
   1. Nested item

- Bullet point
- Another bullet
  - Nested bullet

Images use the same syntax as links, with ! in front.

[Text link](https://example.com)
![Image description](/path/to/image.png)

Todo

- [ ] Not done
- [x] Done

Code block

```
def hello():
    print("Hello")
```

Tables

The second line |---| is required. :--- aligns left, :---: centers, and ---: aligns right.

| Left | Center | Right |
|:-----|:------:|------:|
| L    | C      | R     |

Markdown in Obsidian

Obsidian uses [[ ]] instead of [ ](). It links to another note in the vault.

[[Note name]]
[[Note|Display text]]
[[folder/note]]

Frontmatter for metadata

The --- block at the top of a file stores metadata. Use it for filtering, search, and queries.

---
title: Note title
tags: [topic, project]
date: 2025-12-08
---

Embed notes

Add ! before [[ ]] to show content instead of only linking to it.

![[Another note]]       # Embed the whole note
![[Note#Section]]       # Embed one section
![[image.png]]          # Embed image
![[image.png|300]]      # Width 300px
![[image.png|300x150]]  # 300x150

Callout

> [!NOTE]

> [!WARNING]

Cú pháp cơ bản

Heading

Dòng bắt đầu bằng # là heading. Nhiều # hơn thì heading nhỏ hơn.

# H1 - Lớn nhất
## H2 - Trung bình
### H3 - Nhỏ

Định dạng text

**in đậm**
*in nghiêng*
~~gạch ngang~~
`code`

Danh sách

Dùng - cho bullet, số cho thứ tự. Thụt lề để lồng.

1. Mục đánh số
2. Mục thứ hai
   1. Mục con

- Bullet point
- Bullet khác
  - Bullet lồng

Ảnh dùng cùng cú pháp với link, nhưng thêm ! ở trước.

[Text link](https://example.com)
![Mô tả ảnh](/path/to/image.png)

Todo

- [ ] Chưa xong
- [x] Xong

Code block

```
def hello():
    print("Hello")
```

Bảng

Dòng thứ hai |---| là bắt buộc. :--- căn trái, :---: căn giữa, ---: căn phải.

| Trái | Giữa | Phải |
|:-----|:----:|-----:|
| L    | C    | R    |

Markdown trong Obsidian

Obsidian dùng [[ ]] thay vì [ ](). Link đến note khác trong vault.

[[Tên note]]
[[Note|Text hiển thị]]
[[folder/note]]

Frontmatter cho metadata

Khối --- ở đầu file dùng để lưu metadata. Dùng nó để lọc, search, query.

---
title: Tiêu đề note
tags: [chủ đề, dự án]
date: 2025-12-08
---

Embed note

Thêm ! trước [[ ]] để hiển thị nội dung thay vì chỉ link.

![[Note khác]]       # Embed cả note
![[Note#Section]]    # Embed một phần
![[image.png]]       # Embed ảnh
![[image.png|300]]   # Rộng 300px
![[image.png|300x150]] # 300x150

Callout

> [!NOTE]

> [!WARNING]