能提高生产率的Markdown介绍

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](https://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}\theta} = \cos(\theta) + \mathrm{i}\sin(\theta)
$$$

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记法的介绍。

更多的使用它与周围与众不同。

posted @ 2017-12-10 13:04  junp0819  阅读(193)  评论(0)    收藏  举报