MarkDown常用语法

纯为自己记录留用。主要选择自己现在初学者迫切需要的语法。日后熟悉了继续发展。

1、空一行(两个回车)分段

2、行末加两个或多个空格才是真正的换行,否则正常的一个回车就像在HTML代码中一样,被当作空 格处理 (很明显,我机器上并非如此,一个回车也被当回车入理了)
3、插入链接:链接文字

4、图片跟链接很像,在前面加个叹号:![alt 文字](图片URL)

标题

用1-6个井号(#)开始一行表示这一行是标题,倒如:

#一级标题
##二级标题
######六级标题

一级标题

二级标题

六级标题

blockquote

用右尖括号(>)表示blockquote,你一定见过邮件中这样表示引用别人的内容。可以嵌套,可以包含其它的Markdown元素,例如:

> ## This is a header.
> 
>1.   This is the first list item.
>2.   This is the second list item.
>
>Here's some example code:
>
> return shell_exec("echo $input | $markdown_script");

This is a header.

  1. This is the first list item.
  2. This is the second list item.

Here's some example code:

return shell_exec("echo $input | $markdown_script");

Comments !

blogroll

social