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>

反斜杠

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

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

原文地址:https://www.cnblogs.com/metaphors/p/7553768.html