标题是非常重要的一个标记,一段文字标记为标题,只需要在文字前加 #。具体可以支持到1到6个#
1 2 3 4 |
# 一级标题 ## 二级标题 ### 三级标题 #### 四级标题 |
建议在#后,最好加入一个空格,这是Mardown的标准写法
列表主要两种类型,无序和有序。无序的只要在文字前加-或者*,有序的是使用1.,2.,3.标记。
无序效果:
有序效果:
图片和链接是非常必要,两者之间很相近,就相差一个!
图片:![]()
链接: []()
粗体与斜体也比较简单,两个*或_包含一段文本就是粗体,一个*或_包含一段文本就是斜体
粗体 斜体
表格看起来是特别麻烦,所以就直接copy模块,然后进行修改。
1 2 3 4 5 |
dog | bird | cat ----|------|---- foo | foo | foo bar | bar | bar baz | baz | baz |
| dog | bird | cat |
|---|---|---|
| foo | foo | foo |
| bar | bar | bar |
| baz | baz | baz |
1 2 3 4 5 |
| Tables | Are | Cool | | ------------- |:-------------:| -----:| | col 3 is | right-aligned | $1600 | | col 2 is | centered | $12 | | zebra stripes | are neat | $1 | |
| Tables | Are | Cool |
|---|---|---|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
看到效果了吧,如果让标题居中,加:-------------:,右对齐-----:
这个我们程序猿必须要的,hexo 中定义了两种:
Backtick Code
Block
1 |
code snippet |
Swig Code Block
分割线的语法只需要三个 * 号
分割线
youtube:
1 |
<iframe width="420" height="315" src="http://www.youtube.com/embed/QH2-TGUlwu4" frameborder="0" allowfullscreen></iframe> |
在线好用的Markdown工具,为印象笔记而生
参考资源:
原文:http://www.cnblogs.com/visionwang/p/3732480.html