Markdown是什麼?

Markdown 是一種輕量級標記語言,創始人為約翰·格魯伯(英語:John Gruber)。它允許人們「使用易讀易寫的純文本格式編寫文檔,然後轉換成有效的XHTML(或者HTML)文檔」。這種語言吸收了很多在電子郵件中已有的純文本標記的特性。

(參考網站: https://zh.wikipedia.org/wiki/Markdown)

那麼,我們就來介紹一下Markdown。

使用方法


1.標題

# 大標題
## 副標題
### 小標題
標準

2.強調

*斜體類型*
**黑體字**

3.摺疊

摺疊長句

<details><summary>Boostnote是對應markdown記法的記事本,信息排序?共享的一種工具。</summary>
- Features - <br>
· Search function to find memos in one shot
· Supports markdown notation <br>
· Support for Mac, Windows, Linux, iOS, Android <br>
· Export and import to Plain text (.txt), Markdown (.md) format <br>
· Supports PDF saving <br>
· Can be used offline <br>
· Synchronize to dropbox etc. with setting <br>
· Supports theme colors and numerous fonts <br>
</details>

4.名單

* 名單1
* 名單2
* 名單3

5.鏈接

左側寫文字,右側放入鏈接。

[Boostnote](Boostnote)

6.複選框

- [x] 任務 1
- [ ] 任務 2

7.引文

> 引文
> 引文引文

8.水平線

水平線有很多種寫法。

* * *
***
*****
- - -
---------------------------------------

9.嵌入圖像

把圖片的標題寫在左側,右側寫下已保存的地方。

![嵌入圖像](https://boostnote.io/assets/img/logo.png)

10.填寫源代碼

對於程序員,可以寫代碼。

``` js
Render: function () {
Return (
<Div className = "commentBox">
<H1> Comments </ h1>
<CommentList data = {this.state.data} />
<CommentForm onCommentSubmit = {this.handleCommentSubmit} />
</ Div>
);
}
```

11.表格符號

表格也易於製作。

複製並更改為各種各樣的東西。

| 水果 | 價錢 |
|:-----------|------:|
| 蘋果 | 1$ |
| 葡萄 | 4$ |
| 橙子 | 2$ |
| 檸檬 | 1$ |
| 桃子 | 3$ |
| 瓜 | 20$ |

到這裡,就是Markdown最基本的寫法。

Markdown記法不能再普通的記事本中使用。

記事本需要與Markdown兼容。

如果可以的話,請您使用一下Boostnote。

用Boostnote的話,附加上上述的基本的markdown記法,以下的描述也可以。


12.Latex

可以寫數值公式。

$$$
mathrm{e}^{mathrm{i} heta} = cos( heta) + mathrm{i}sin( heta)
$$$

13.Flowchart(流程圖)

可以畫流程圖

``` flowchart
st=>start: Start:>http://www.google.com[blank]
e=>end:>http://www.google.com
op1=>operation: My Operation
sub1=>subroutine: My Subroutine
cond=>condition: Yes or No?:>http://www.google.com
io=>inputoutput: catch something...

st->op1->cond
cond(yes)->io->e
cond(no)->sub1(right)->op1
```

14.Sequence(序列)

也可以寫序列。

``` sequence
Title: Here is a title
A-> B: Normal line
B -> C: Dashed line
C - >> D: Open arrow
D - >> A: Dashed open arrow
```

以上就是Markdown記法的介紹。

更多的使用它與周圍與眾不同。


推薦閱讀:
相關文章