Markdown 語法快速參考

本頁內容適用於 ApigeeApigee Hybrid

查看 Apigee Edge 說明文件。

格式 Markdown HTML

標題

#Heading 1

<h1>Heading 1</h1>

標題 1
-------------

## 標題 2

<h2>標題 2</h2>

標題 2
--------------

### 標題 3
#### 標題 4
##### 標題 5
###### 標題 6

<h3>標題 3</h3>
<h4>標題 4</h4>
<h5>標題 5</h5>
<h6>標題 6</h6>

段落

段落之間以空白行分隔。

這是另一個段落。

<p>段落之間以空白行分隔</p>
<p>這是另一個段落。</p>

換行

行尾有兩個空格

插入分行符號。

行尾的兩個空格  <br>
插入分行符號。

字型

**粗體**

__bold__

<strong>粗體</strong>

*斜體*

_斜體_

<em>斜體</em>

**_粗體和斜體_**

<strong><em>粗體和斜體</em></strong>

monospace

<code>monospace</code>

~~刪除線~~

<s>刪除線</s>

連結

[Link text](http://www.example.com) <a href="http://www.example.com">連結文字</a>
[Link text](/directory/page)
<a href="/directory/page">Link text</a>
[連結文字](#錨點) - 連結至同一網頁中的錨點。
<a href="#anchor">連結文字</a> - 連結至同一頁面中的錨點。
[Link text](page_url#anchor) - link to anchor in another page.
<a href="page_url#anchor">連結文字</a> - 連結至另一個網頁中的錨點。
[Header](#header) - link to header with the text "Header" in same page.
<a href="#header">Header</a> - link to a header in same page only if the header is defined with either id="header" in the <h> tag or <a name="header">
[Header text](header-text) - link to header with the text "Header text" in same page. 空格和標點符號會替換為「-」。 <a href="#header-text">Header Text</a> - link to a header in same page only if the header is defined with either<a name="header-text"> or id="header-text" in the header tag, for example <h2 id="header-text">Header text</h2>.

圖片

![Alt-text](http://www.mycompany.com/image.png)

<img src="http://www.mycompany.com/image.png" alt="Alt-text">

水平線

---

<hr />

已排序的清單

1. 項目 1
2. 項目 2
3.項目 3

1. 項目 1
1. 項目 2
1.項目 3

1. 項目 1
8. 項目 2
6.項目 3

<ol>
<li>項目 1</li>
<li>項目 2</li>
<li>項目 3</li>
</ol>

未排序的清單

* 項目
* 項目
* 項目

+ 項目
+ 項目
+ 項目

- 項目
- 項目
- 項目

<ul>
<li>項目</li>
<li>項目</li>
<li>項目</li>
</ul>

資料表

| 欄 1 | 欄 2 | 欄 3 |
| --------------| ------------ | ------------- |
| 列 1-1   | 列 1-2   | 列 1-3   |
| 列 2-1   | 列 2-2   | 列 2-3   |

<table>
 <tr>
    <th>Column 1</th>
    <th>Column 2</th>
    <th>Column 3</th>
 </tr>
 <tr>
   <td>Row 1-1</td>
     <td>Row 1-2</td>
     <td>Row 1-3</td>
  </tr>
  <tr>
     <td>Row 2-1</td>
     <td>Row 2-2</td>
     <td>Row 2-3</td>
  </tr>
</table>

預先格式化的文字區塊

'''

{
   Code block
}
'''

<pre>
{
    Code block
}
</pre>

段落式引文

> 這是引用文字
>,包含多行內容。

<blockquote>
這是引用文字
包含多行文字。
</blockquote>

置中

不適用

<p style="text-align:center" >置中文字</p>