160410markdown初试手
标签(空格分隔): markdown log
markdown基本语法
标题
#一级标题
##二级标题
……
一共六级标题
列表
无序列表
无序列表显示需要在文字前加上空格
* 1
* 2
* 1
有序列表
有序列表则直接在文字前加1. 2. 3.
符号要和文字之间加上一个字符的空格
1. a
2. b
3. c
输入空格
将输入法切换到全角,一般是shift+空格,然后空格即可输出
引用
在文本前加上尖括号>即可
albert说过,今天天气不错
图片与链接
图片为: !{ImgCap}{/ImgCap}
链接为: []()
ex:
插入图片
插入链接deal pool
行内式链接
这个是ex
粗体和斜体
用两个 * 包含一段文本就是粗体的语法
用一个 * 包含一段文本就是斜体的语法
**粗体**
*斜体*
粗体
斜体
表格
dog | cat | human |
---|---|---|
foo | foo | foo |
bar | bar | bar |
Tables | Are | Cool |
---|---|---|
col 3 is | right-aligned | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
冒号输入时,在左侧即为左对齐,在右侧为右对齐
如果左右都有,即为居中
代码
“`python
@requires_authorization
class SomeClass:
pass
if name == ‘main‘:
# A comment
print ‘hello world’
“`
@requires_authorization
class SomeClass:
pass
if __name__ == '__main__':
# A comment
print 'hello world'
class(a)
ls()
脚注
1231
- hello ↩