Markdown 語法速查表


Markdown 語法,是一種透過簡單的字元和標點符號的句法組合,撰寫含有連結、清單和其他樣式的格式化內容。原本是提供網站作家不需要分心去找尋螢幕上的樣式調整按鍵,就能快速地直接騰打需要的文字及其表現形態。

其實不只網站開發者需要學習,很多討論區的留言,或是最近很流行的非同質化代幣(NFT Non-Fungible Token, NFT)交易所也提供鑄幣時可用 Markdown 語法編輯內文,對於推廣NFT作品時很有幫助。

Markdown 語法元素速查表

基本語法(Basic syntax)

#### 標題(Heading)

# H1
## H2
### H3
#### H4
##### H5
###### H6

備註:上下要各空一行。

#### 粗體字(Bold)

**bold text**

#### 斜體字(Italic)

*italicized text*

#### 引文(Blockquote)

> blockquote

#### 編號清單、排序列表(Ordered List)

1. First item
2. Second item
3. Third item

#### 不排序清單、項目符號(Unordered List)

- First item
- Second item
- Third item

#### 程式碼(Code)

`code`

#### 水平線、分隔符號(Horizontal Rule)

---

#### 連結(Link)

[mountos link](https://mountos.com)

#### 圖片(Image)

![alt text](https://mountos.com/favicon.ico)

擴充語法(Extended Syntax)

下面各元素係透過新增延伸套件來擴充基本語法,不是所有Markdown應用程式開發者都支援這些元素。

#### 表格(Table)

| Syntax | Description |
| ----------- | ----------- |
| Header | Title |
| Paragraph | Text |

#### 圍欄式程式碼(Fenced Code Block)

```
{
  "firstName": "John",
  "lastName": "Smith",
  "age": 25
}
```

#### 註腳(Footnote)

Here's a sentence with a footnote. [^1]

[^1]: This is the footnote.

#### 標題自定義ID(Heading ID)

### My Great Heading {#custom-id}

備註:HTML等於「<h3 id="custom-id">My Great Heading</h3>」效果。

#### 定義列表(Definition List)

term
: definition

#### 刪除線(Strikethrough)

~~The world is flat.~~

#### 任務列表(Task List)

- [x] Write the press release
- [ ] Update the website
- [ ] Contact the media

#### 表情符號(Emoji)

That is so funny! :joy:

#### 強調(Highlight)

I need to highlight these ==very important words==.

#### 下標(Subscript)

H~2~O

#### 上標(Superscript)

X^2^
分享這篇文章:

使用 Email 訂閱 最新消息不漏接

我們尊重您的隱私,隨時可取消訂閱。

留言

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *