Markdown 速查表

本速查表提供最常用 Markdown 語法元素的快速參考。撰寫 Markdown 文件時可當隨手指南。

基本語法

元素Markdown 語法
標題 1# Heading 1
標題 2## Heading 2
標題 3### Heading 3
粗體**bold text**
斜體*italic text*
粗體與斜體***bold & italic***
刪除線~~strikethrough~~
無序清單- List item
- Another item
有序清單1. First item
2. Second item
連結[Link text](URL)
圖片![Alt text](image.jpg)
行內程式碼`code`
區塊引用> Blockquote text
水平線--- or *** or ___
換行行末加兩個空格

延伸語法

元素Markdown 語法
表格| Header | Header |
|--------|--------|
| Cell | Cell |
對齊表格| Left | Center | Right |
|:-----|:------:|------:|
| Cell | Cell | Cell |
待辦清單- [ ] Task
- [x] Done
圍欄程式碼區塊```language
code block
```
註腳Text[^1]
[^1]: Footnote
定義清單Term
: Definition
Mermaid 圖表```mermaid
graph TD
A --> B
```
數學公式$E = mc^2$
表情符號:smile: :heart:
醒目提示==highlighted text==
下標H~2~O
上標X^2^

快速參考範例

基本文件結構

# Main Title
## Section 1
Content goes here...

## Section 2
- List item 1
- List item 2

> Important note here

進階格式化

| Feature | Support |
|---------|---------|
| Tables  | ✅      |
| Lists   | ✅      |
| Code    | ✅      |

- [ ] Task 1
- [x] Task 2

:smile: Happy coding!

技巧與訣竅

  • 用 **#** 表示標題(1–6 級)
  • 用 ****** 或 **__** 表示粗體
  • 用 *** 或 **_ ** 表示斜體
  • 用 **`** 表示行內程式碼
  • 用 **```** 表示帶語法醒目提示的程式碼區塊
  • 用 **>** 表示區塊引用
  • 用 **-** 或 *** 表示無序清單
  • 用 **1.** 表示有序清單
  • 用 **---** 表示水平線
  • 用 **[文字](url)** 表示連結
  • 用 **![alt](url)** 表示圖片