cover

Markdown 语法

列表

  1. First ordered list item
  2. Another item
    • Unordered sub-list.
    • Unordered sub-list.
  3. Actual numbers don’t matter, just that it’s a number
    1. Ordered sub-list
    2. Ordered sub-list
  4. And another item.

Unordered list:

  • Unordered list can use asterisks
  • Or minuses
  • Or pluses
1. First ordered list item
1. Another item
    * Unordered sub-list. 
    * Unordered sub-list. 
1. Actual numbers don't matter, just that it's a number
    1. Ordered sub-list
    1. Ordered sub-list
1. And another item.

Unordered list:

* Unordered list can use asterisks
- Or minuses
+ Or pluses

表格

Colons can be used to align columns.

Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1

There must be at least 3 dashes separating each header cell. The outer pipes (|) are optional, and you don’t need to make the raw Markdown line up prettily. You can also use inline Markdown.

Markdown Less Pretty
Still renders nicely
1 2 3
Colons can be used to align columns.

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |

There must be at least 3 dashes separating each header cell.
The outer pipes (|) are optional, and you don't need to make the 
raw Markdown line up prettily. You can also use inline Markdown.

Markdown | Less | Pretty
--- | --- | ---
*Still* | `renders` | **nicely**
1 | 2 | 3

任务列表

  • 生活
    • 睡觉
    • 玩游戏
    • 看剧
  • 爬山
  • 学习
    • 写代码
    • 看论文
  • 上网
- [ ] 生活
    - [x] 睡觉
    - [x] 玩游戏
    - [ ] 看剧
- [x] 爬山
- [ ] 学习
    - [x] 写代码
    - [ ] 看论文
- [x] 上网

分组标签

苏子愀然,正襟危坐而问客曰:“何为其然也?”客曰:“月明星稀,乌鹊南飞,此非曹孟德之诗乎?西望夏口,东望武昌,山川相缪,郁乎苍苍,此非孟德之困于周郎者乎?方其破荆州,下江陵,顺流而东也,舳舻千里,旌旗蔽空,酾酒临江,横槊赋诗,固一世之雄也,而今安在哉?况吾与子渔樵于江渚之上,侣鱼虾而友麋鹿,驾一叶之扁舟,举匏樽以相属。寄蜉蝣于天地,渺沧海之一粟。哀吾生之须臾,羡长江之无穷。挟飞仙以遨游,抱明月而长终。知不可乎骤得,托遗响于悲风。”

苏子曰:“客亦知夫水与月乎?逝者如斯,而未尝往也;盈虚者如彼,而卒莫消长也。盖将自其变者而观之,则天地曾不能以一瞬;自其不变者而观之,则物与我皆无尽也,而又何羡乎!且夫天地之间,物各有主,苟非吾之所有,虽一毫而莫取。惟江上之清风,与山间之明月,耳得之而为声,目遇之而成色,取之无禁,用之不竭,是造物者之无尽藏也,而吾与子之所共适。”

More Markdown content.

  • list item a
  • list item b
=== "前赤壁赋"
    <前赤壁赋正文>

=== "第二个标签"
    More Markdown **content**.

    - list item a
    - list item b

详情

琵琶行

忽闻水上琵琶声,主人忘归客不发。寻声暗问弹者谁,琵琶声停欲语迟。移船相近邀相见,添酒回灯重开宴。千呼万唤始出来,犹抱琵琶半遮面。转轴拨弦三两声,未成曲调先有情。弦弦掩抑声声思,似诉平生不得志。低眉信手续续弹,说尽心中无限事。轻拢慢捻抹复挑,初为《霓裳》后《六幺》。大弦嘈嘈如急雨,小弦切切如私语。嘈嘈切切错杂弹,大珠小珠落玉盘。间关莺语花底滑,幽咽泉流冰下难。冰泉冷涩弦凝绝,凝绝不通声暂歇。别有幽愁暗恨生,此时无声胜有声。银瓶乍破水浆迸,铁骑突出刀枪鸣。曲终收拨当心画,四弦一声如裂帛。东船西舫悄无言,唯见江心秋月白。

Markdown

I’m bold.

??? optional-class "琵琶行"
    <琵琶行>

??? class1 class2 "Markdown"
    I'm **bold**.

代码块

不高亮:

import hello

if __name__ == '__main__':
    print('world')

高亮:

import hello

if __name__ == '__main__':
    print('world')

行号+高亮:

import hello

if __name__ == '__main__':
    print('world')

不高亮:

```
import hello

if __name__ == '__main__':
    print('world')
```

高亮:

```py3
import hello

if __name__ == '__main__':
    print('world')
```

行号+高亮:

```py3 linenums="1"
import hello

if __name__ == '__main__':
    print('world')
```
留言
Login with GitHub OR Google