前言
Markdown 是一種輕量級標記語言,讓你可以使用簡單的語法來編寫格式化的文件。這篇文章整理了撰寫部落格時最常用的 Markdown 語法。
標題層級
標題大小與 HTML 對應關係
# = <h1>
## = <h2>
### = <h3>
#### = <h4>
##### = <h5>
###### = <h6>
Highlight
我是一般字型
我是 強調字型
Code
<body></body>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
Blockquote
小白每天起床都會說: 今天天氣好好
Table
| AAA | BBB | CCC |
|---|---|---|
| ABC | EDF | GHI |
| 123 | 456 | 789 |
List
fruit
apple
banana
meat
beef
chicken
Write the press release
Update the website
Contact the media
Math
$$ c = \sqrt{a^{2}+b_{xy}^{2}+e^{x}} $$
總結
Markdown 語法簡單易學,掌握這些基本語法就能快速撰寫格式化的文件。更多進階功能可以參考官方文件。