Markdown初步使用

2019-04-10  本文已影响0人  枫隐_5f5f

一 段落、标题、代码区块

1.“#”号的个数代表了标题的层级 1~6级

2.“>” 表示了区块的引用 效果如下

区块的引用效果

二 修辞和强调

使用“*”或者“_”来标记需要强调的段落

这是需要强调的 单词

三 列表

  1. 无序列表 使用 “*”,“+”,“-”来作为列表的项目标记
  1. 有序列表 数字加点 例如 “1.”

四 链接

1 []里面是连接的字 ()里面是连接地址

This is an example link.

2 文献引用的方式

I get 10 times more traffic from Google than from

Yahoo or MSN.

3 <>里面包含连接地址的形式

http://example.com/

五 图片

“![alt text]” 跟上() 里面是图片本地路径

六 代码

1 反引号 “`” 来标记代码区块

I strongly recommend against using any <blink> tags.

I wish SmartyPants used named entities like &mdash;

instead of decimal-encoded entites like &#8212;.

2 每行开头一个tab可以自动添加成代码块

  print (i)

七 区块可以嵌套

多个 “>” 即可

This is the first level of quoting.

This is nested blockquote.

Back to the first level.

八 分割线

可以使用三个以上的星号,减号,底线符号来建立分割线 但是同一行不能有其他字符

例如 “***”


九 代码块高亮

```python   #对应的语言
    import test
```    

效果图

 import test
 print("hello word")
上一篇 下一篇

猜你喜欢

热点阅读