什么是 Markdown?

683 阅读1分钟

Markdown是有纯文本格式语构的轻量级标记语言. 通过使用同样的名字,它可以被转换成HTML以及许多其他格式。

转自 英文维基百科

Markdown的格式介绍

  1. 标题

h1

h2

h3

standard

  1. 强调 Italic type Bold Negative

  2. 折叠 折叠长句

Boostnote is a notepad corresponding to markdown notation, which is a tool for organizing and sharing information.
  • Features -

· Search function to find memos in one shot

· Supports markdown notation

· Support for Mac, Windows, Linux, iOS, Android

· Export and import to Plain text (.txt), Markdown (.md) format

· Supports PDF saving

· Can be used offline

· Synchronize to dropbox etc. with setting

· Supports theme colors and numerous fonts

  1. 列表
  • List 1

  • List 2

  • List 3
  1. 链接 把内容写在左边,把链接的URL放在右边

Boostnote

  1. 复选框
  • Task 1

  • Task 2

  1. 引用

Quotation

Quotation Quotation

  1. 水平线 水平线有多种不同的表达方式



  1. 图片 把图片的名字放在左边,把图片的保存路径放在右边。

Image title

  1. 源代码

Render : function () {

Return (

<Div className = “commentBox”>

<H1> Comments </ h1>

<CommentList data = {this.state.data} />      <CommentForm onCommentSubmit = {this.handleCommentSubmit} />

</Div>

);

}

  1. 表格 | Fruits | Price |

|:--|:--|

| Apple | 1$ |

| Grapes | 4$ |

| Orange | 2$ |

| Lemon | 1$ |

| Peach | 3$ |

| Melon | 20$ |

以上是基础的markdown格式.

除了以上之外, 你也可以写一些复杂的语构,例如下方给出的在Boostnote里的例子。

Latex

数学格式.

$

\mathrm{e}^{\mathrm{i}\theta} = \cos(\theta) + \mathrm{i}\sin(\theta)

$

流程图


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

Sequence


Title: Here is a title

A-> B: Normal line

B -> C: Dashed line

C -> D: Open arrow

D -> A: Dashed open arrow

使用Boostnote👍

boostnote.io/