Markdown语法

本文为原创文章,转载请标明出处

目录

  1. 区块元素
    • 标题
      • Setext形式
      • Atx形式
    • 列表
      • 无序列表
      • 有序列表
    • 区块引用
    • 代码区块
    • 分割线
    • 换行
  2. 区段元素
    • 强调
      • 粗体
      • 斜体
    • 代码
    • 链接
      • 行内式
      • 参考式
    • 图片
      • 行内式
      • 参考式
  3. 其他
    • 自动链接
    • 反斜杠

1. 区块元素

标题

Setext形式
This is h1
==========
This is h2
----------
Atx形式
# This is h1
## This is h2
### This is h3
#### This is h4
##### This is h5
###### This is h6

列表

无序列表
* Red
* Green
* Blue

等同于

+ Red
+ Green
+ Blue

等同于

- Red
- Green
- Blue
有序列表
1. Red
2. Green
3. Blue

区块引用

> This is a blockquote

代码区块

tab键

分割线

---

***

___

换行

两个空格+回车

2. 区段元素

强调

粗体
**strong**

等同于

__strong__
斜体
*strong*

等同于

_strong_
代码
`code`
`` `code` ``

链接

行内式
This is [Metaphors' Blog](http://metaphors.name "Metaphors' Blog") inline link.
参考式
This is [Metaphors' Blog][id] reference-style link.

[id]:http://metaphors.name "Metaphors' Blog"

图片

行内式
![Vim Cheat Sheet](http://metaphors.name/assets/images/blog/2017-09-08-Vim/vim_cheat_sheet.PNG)
参考式
![Vim Cheat Sheet][id]

[id]:http://metaphors.name/assets/images/blog/2017-09-08-Vim/vim_cheat_sheet.PNG "Vim Cheat Sheet"

3. 其他

自动链接

<http://metaphors.name>

反斜杠

\   反斜线
`   反引号
*   星号
_   下划线
{}  花括号
[]  方括号
()  括弧
#   井号
+   加号
-   减号
.   英文句点
!   感叹号

如有不当之处,请予指正,谢谢~

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值