Markdown 基本要素
这篇文件意在简要介绍 GitHub Flavored Markdown 写作。
语法说明
标题
# 这是 <h1> 一级标题
## 这是 <h2> 二级标题
### 这是 <h3> 三级标题
#### 这是 <h4> 四级标题
##### 这是 <h5> 五级标题
###### 这是 <h6> 六级标题强调
*这会是 斜体 的文字*
_这会是 斜体 的文字_
**这会是 粗体 的文字**
__这会是 粗体 的文字__
_你也 **组合** 这些符号_
~~这个文字将会被横线删除~~列表
无序列表
- Item 1
- Item 2
  - Item 2a
  - Item 2b有序列表
1. Item 1
1. Item 2
1. Item 3
   1. Item 3a
   1. Item 3b添加图片

Format: 链接
http://github.com - 自动生成!
[GitHub](http://github.com)引用
正如 Kanye West 所说:
> We're living the future so
> the present is our past.分割线
如下,三个或者更多的
---
连字符
---
星号
---
下划线行内代码
我觉得你应该在这里使用
`<addr>` 才对。代码块
你可以在你的代码上面和下面添加 ``` 来表示代码块。
语法高亮
你可以给你的代码块添加任何一种语言的语法高亮
例如,给 ruby 代码添加语法高亮:
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
会得到下面的效果:
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html任务列表
- [x] @mentions, #refs, [links](), **formatting**, and <del>tags</del> supported
- [x] list syntax required (any unordered or ordered list supported)
- [x] this is a complete item
- [ ] this is an incomplete item表格
First Header | Second Header
------------ | -------------
Content from cell 1 | Content from cell 2
Content in the first column | Content in the second column扩展的语法
上标
30^th^下标
H~2~O脚注
Content [^1]
[^1]: Hi! This is a footnote缩略
_[HTML]: Hyper Text Markup Language
_[W3C]: World Wide Web Consortium
The HTML specification
is maintained by the W3C.标记
==marked==CriticMarkup
CriticMarkup 缺省是禁用的,你可以通过插件设置来启动它。
有关 CriticMarkup 的更多信息,请查看 CriticMarkup 用户指南.
这里有 5 种基本语法:
- 添加 {++ ++}
- 删除 {-- --}
- 替换 {~~ ~> ~~}
- 注释 {>> <<}
- 高亮 {== ==}{>> <<}
CriticMarkup 仅可用于 markdown-it parser,不与 pandoc parser 兼容。
参考
- [Mastering Markdown](https://guides.github.com/features/mastering-markdown/)
- [Daring Fireball: Markdown Basics](https://daringfireball.net/projects/markdown/basics)参考文档
 
                        
                        