Markdown語法示例

Philosophy****

Markdown is intended to be as easy-to-read and easy-to-write as is feasible.
Readability, however, is emphasized above all else. A Markdown-formatted document should be publishable as-is, as plain text, without looking like it's been marked up with tags or formatting instructions.
Markdown's syntax is intended for one purpose: to be used as a format for writing for the web.

Notice

You can use CMD + 4 or CMD + R to preview the result.

Headers

Example:

# This is an `<h1>` tag
## This is an `<h2>` tag
###### This is an `<h6>` tag

Result:

This is an <h1> tag

This is an <h2> tag

This is an <h6> tag

Emphasis

Example:

*This text will be italic*
_This will also be italic_

**This text will be bold**
__This will also be bold__

*You **can** combine them*

Shortcuts: CMD + U免糕、CMD + ICMD + B
Result:

This text will be italic
This will also be italic

This text will be bold
This will also be bold

You can combine them

Newlines

End a line with two or more spaces + enter.
Just typing enter to newline,please set:Preferences - Themes - Translate newlines to <br> tags enable ( default is enable )

Lists

Unordered

Example:

* Item 1 unordered list `* + SPACE`
* Item 2
* Item 2a unordered list `TAB + * + SPACE`
* Item 2b

Shortcuts: Option + U
Result:

  • Item 1 unordered list * + SPACE
  • Item 2
  • Item 2a unordered list TAB + * + SPACE
  • Item 2b

Ordered

Example:

1. Item 1 ordered list `Number + . + SPACE`
2. Item 2 
3. Item 3
1. Item 3a ordered list `TAB + Number + . + SPACE`
2. Item 3b

Result:

  1. Item 1 ordered list Number + . + SPACE
  2. Item 2
  3. Item 3
  4. Item 3a ordered list TAB + Number + . + SPACE
  5. Item 3b

Task lists

Example:

- [ ] task one not finish `- + SPACE + [ ]`
- [x] task two finished `- + SPACE + [x]`

Result:

  • [ ] task one not finish - + SPACE + [ ]
  • [x] task two finished - + SPACE + [x]

Images

Example:

![GitHub set up](https://help.github.com/assets/images/site/set-up-git.gif)
Format: ![Alt Text](url)

Shortcuts: Control + Shift + I
The Library's document support drag & drop or CMD + V paste or CMD + Option + I to insert the picture.
Result:

GitHub set up

In MWeb, you can use -w + Number to control image width, for example, set the image width 140px:

GitHub set up-w140

Links

Example:

email <example@example.com>
[GitHub](http://github.com)
autolink  <http://www.github.com/>

Shortcuts: Control + Shift + L
The Library's document support drag & drop or CMD + Option + I to insert attachment.
Result:

An email example@example.com link.
GitHub
Automatic linking for URLs
Any URL (like http://www.github.com/) will be automatically converted into a clickable link.

Blockquotes

Example:

As Kanye West said:
> We're living the future so
> the present is our past.

Shortcuts: CMD + Shift + B
Result:

As Kanye West said:

We're living the future so
the present is our past.

Inline code

Example:

I think you should use an
`<addr>` `code` element here instead.

Shortcuts: CMD + K
Result:

I think you should use an
<addr> code element here instead.

Multi-line code

Example:

```js
function fancyAlert(arg) {
    if(arg) {
        $.facebox({div:'#foo'})
    }

}
```

Shortcuts: CMD + Shift + K
Result:

function fancyAlert(arg) {
    if(arg) {
        $.facebox({div:'#foo'})
    }

}

Sequence and Flow chart

Example:

```sequence
Andrew->China: Says Hello
Note right of China: China thinks about it
China-->Andrew: How are you?
Andrew->>China: I am good thanks!
```

```flow
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
```

Result: ( Please enable Preferences - Themes - Enable sequence & flow chart, default is enable. )

Andrew->China: Says Hello
Note right of China: China thinks about it
China-->Andrew: How are you?
Andrew->>China: I am good thanks!
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

More info: http://bramp.github.io/js-sequence-diagrams/, http://adrai.github.io/flowchart.js/

Tables

Example:

First Header | Second Header
------------ | -------------
Content from cell 1 | Content from cell 2
Content in the first column | Content in the second column

You can create tables by assembling a list of words and dividing them with hyphens - (for the first row), and then separating each column with a pipe |:

Result:

First Header Second Header
Content from cell 1 Content from cell 2
Content in the first column Content in the second column

Strikethrough

Example:

(like this)

Result:

Any word wrapped with two tildes (like this) will appear crossed out.

Horizontal Rules

Following lines will produce a horizontal rule:

***

*****

- - -

Result:




LaTex

Use double US dollars sign pair for Block level Math formula, and one US dollar sign pair for Inline Level.

For example this is a Block level $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}$$ formula, and this is an inline Level $x = {-b \pm \sqrt{b^2-4ac} \over 2a}$ formula.

\\[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} =
1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
{1+\frac{e^{-8\pi}} {1+\ldots} } } } \\]

Result:

For example this is a Block level $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}$$ formula, and this is an inline Level $x = {-b \pm \sqrt{b^2-4ac} \over 2a}$ formula.

\[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} =
1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
{1+\frac{e^{-8\pi}} {1+\ldots} } } } \]

Footnote

Example:

This is a footnote:[^sample_footnote]

Result:

This is a footnote:[1]

Comment And Read More..



Actions->Insert Read More Comment OR CMD + .

TOC

Example:

[TOC]

Result:

[TOC]

Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
Chris-2:~ Chris$ ndk-build
-bash: ndk-build: command not found
Chris-2:~ Chris$ ndk -build

  1. footnote text detail... ?

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末痒给,一起剝皮案震驚了整個濱河市说墨,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌苍柏,老刑警劉巖尼斧,帶你破解...
    沈念sama閱讀 219,188評論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異试吁,居然都是意外死亡棺棵,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,464評論 3 395
  • 文/潘曉璐 我一進(jìn)店門熄捍,熙熙樓的掌柜王于貴愁眉苦臉地迎上來烛恤,“玉大人,你說我怎么就攤上這事余耽「堪兀” “怎么了?”我有些...
    開封第一講書人閱讀 165,562評論 0 356
  • 文/不壞的土叔 我叫張陵碟贾,是天一觀的道長币喧。 經(jīng)常有香客問我,道長袱耽,這世上最難降的妖魔是什么杀餐? 我笑而不...
    開封第一講書人閱讀 58,893評論 1 295
  • 正文 為了忘掉前任,我火速辦了婚禮朱巨,結(jié)果婚禮上史翘,老公的妹妹穿的比我還像新娘。我一直安慰自己冀续,他們只是感情好琼讽,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,917評論 6 392
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著洪唐,像睡著了一般跨琳。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上桐罕,一...
    開封第一講書人閱讀 51,708評論 1 305
  • 那天脉让,我揣著相機(jī)與錄音桂敛,去河邊找鬼。 笑死溅潜,一個胖子當(dāng)著我的面吹牛术唬,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播滚澜,決...
    沈念sama閱讀 40,430評論 3 420
  • 文/蒼蘭香墨 我猛地睜開眼粗仓,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了设捐?” 一聲冷哼從身側(cè)響起借浊,我...
    開封第一講書人閱讀 39,342評論 0 276
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎萝招,沒想到半個月后蚂斤,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,801評論 1 317
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡槐沼,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,976評論 3 337
  • 正文 我和宋清朗相戀三年曙蒸,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片岗钩。...
    茶點(diǎn)故事閱讀 40,115評論 1 351
  • 序言:一個原本活蹦亂跳的男人離奇死亡纽窟,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出兼吓,到底是詐尸還是另有隱情臂港,我是刑警寧澤,帶...
    沈念sama閱讀 35,804評論 5 346
  • 正文 年R本政府宣布视搏,位于F島的核電站趋艘,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏凶朗。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,458評論 3 331
  • 文/蒙蒙 一显拳、第九天 我趴在偏房一處隱蔽的房頂上張望棚愤。 院中可真熱鬧,春花似錦杂数、人聲如沸宛畦。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,008評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽次和。三九已至,卻和暖如春那伐,著一層夾襖步出監(jiān)牢的瞬間踏施,已是汗流浹背石蔗。 一陣腳步聲響...
    開封第一講書人閱讀 33,135評論 1 272
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留畅形,地道東北人养距。 一個月前我還...
    沈念sama閱讀 48,365評論 3 373
  • 正文 我出身青樓,卻偏偏與公主長得像日熬,于是被迫代替她去往敵國和親棍厌。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,055評論 2 355

推薦閱讀更多精彩內(nèi)容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi閱讀 7,334評論 0 10
  • 曾經(jīng)以為自己已經(jīng)由足夠的能力去爭取自己想要的生活竖席,但隨著一步步的步入社會耘纱,才發(fā)現(xiàn)以前的自己多麼無知、多麼可笑毕荐∈觯總覺...
    愿善良如初閱讀 180評論 0 0
  • 有人說:生命是一趟旅程畸陡,每個人都在途中,每個人都在不知不覺中路過沿途的風(fēng)景虽填。 有許多時侯丁恭,生命若水,石過處斋日,驚濤駭...
    落筆成傷閱讀 189評論 0 0
  • 《深秋》 1牲览、 楓紅葉落,草枯荷殘恶守, 不是懼怕霜冷的嚴(yán)酷第献, 是包容勝敗胸懷的博大。 2兔港、 中年過去不是末日庸毫, 如霜...
    不語不問閱讀 359評論 0 4
  • 人所處的環(huán)境不同,心境自然不同衫樊。 去年下雪的時候飒赃,朋友圈各種雪景美照、搞怪賣萌的雪人吸人眼球科侈,我也在家里二十多平米...
    蕭鳳凰閱讀 728評論 0 0