Markdown快速参考

  • 强调
1
2
	*Emphasize* _emphasize_
	**Strong** __Strong__
  • 超链接
1
	A [link](http://example.com "Title").

1
2
3
	Some text with [a link][1] and another [link][2].
	[1]: http://example.com/ "Title"
	[2]: http://example.org/ "Title"
  • 图片
1
	Logo: ![Alt](/wp.png "Title")

1
2
	Smaller logo: ![Alt][1]
	[1]: /wp-smaller.png "Title"
  • 脚注
1
2
	I have more [^1] to say up here.
	[^1]: To say down here.
  • 换行

wordpress不支持双空格换行,只能支持回车换行

  • 列表
1
2
	* Item
	- Item

1
2
3
4
5
	1. Item
	2. Item
   		* Mixed
   		* Mixed  
	3. Item
  • 区块
1
2
3
	> Block 1
	> Block 2
	> Block 3
  • 原样输出

当每行行头空出2个以上空格时则原样输出(不能有命令符)

  • 代码
1
	`This is code`
  • 代码块
1
2
3
4
5
6
7
8
9
	~~~~
	This is a 
	piece of code 
	in a block
	~~~~

	```lang
	This too
	```
  • 语法高亮
1
2
3
	```zsh
	# hello world
	```
  • 标题
1
2
3
4
5
6
	# Header 1
	## Header 2
	### Header 3 
	#### Header 4 ####
	##### Header 5 #####
	###### Header 6 ######
  • 定义
1
2
	WordPress
	:  A semantic personal publishing platform 
  • 缩写
1
2
	Markdown converts text to HTML.
	*[HTML]: HyperText Markup Language