Markdown
Markdown Cheat Sheet.
标题
- ATX 风格
- Setext 风格
| Markdown | HTML | Description |
|---|---|---|
# H1 | <h1>H1</h1> | Heading 1 |
## H2 | <h2>H2</h2> | Heading 2 |
### H3 | <h3>H3</h3> | Heading 3 |
#### H4 | <h4>H4</h4> | Heading 4 |
##### H5 | <h5>H5</h5> | Heading 5 |
###### H6 | <h6>H6</h6> | Heading 6 |
Heading 1
=========
Heading 2
---------
段落
<!-- Paragraph -->
This is a paragraph.
强调
| Markdown | HTML | Description |
|---|---|---|
*foo* | <em>foo</em> | Italic 斜体 |
_foo_ | <em>foo</em> | Italic 斜体 |
**foo** | <strong>foo</strong> | Bold 加粗 |
__foo__ | <strong>foo</strong> | Bold 加粗 |
~~foo~~ | <del>foo</del> | Strikethrough 删除线 |
`foo` | <code>foo</code> | Inline code 内联代码 |
==foo== | <mark>foo</mark> | Highlight 高亮 |
列表
- Unordered 无序列表
- Ordered 有序列表
- Task List 任务列表
<!-- Unordered -->
- Item 1
- Item 2
- Item 2a
- Item 2b
1. Item 1
2. Item 2
3. Item 3
a. Item 3a
b. Item 3b
- [ ] Item 1
- [ ] Item 2
- [x] Item 3
引用
- Blockquote
- Nested Blockquote 嵌套引用
<!-- Blockquote -->
> blockquote
<!-- Nested Blockquote -->
> blockquote
>
> > nested blockquote
链接
- Inline
- Reference-style labels (titles)
This is an [example link](https://example.com/).
-OR-
<https://example.com/>
This is an [example link][id].
[id]: https://example.com/ "Optional Title Here"
图片
- Inline
- Reference-style labels (titles)
<!-- Inline -->

<!-- Reference-style -->
![alt text][id]
[id]: image.jpg
表格
| Syntax | Description |
| --------- | ----------- |
| Header | Title |
| Paragraph | Text |
<!-- Alignment -->
| Syntax | Description | Test Text |
| :--------- | :----------: | ----------: |
| Left align | Center align | Right align |
代码
- Inline 内联
- Syntax Highlighting 语法高亮
- Line Highlighting 行高亮
<!-- Inline -->
I think you should use an `<addr>` element here instead.
```js
function fancyAlert(arg) {
if (arg) {
$.facebox({ div: "#foo" });
}
}
```
```js {2,4-5}
function fancyAlert(arg) {
if (arg) {
$.facebox({ div: "#foo" });
}
}
```
脚注
Here's a sentence with a footnote. [^1]
[^1]: This is the footnote.
分割线
Three or more...
---
Hyphens
***
Asterisks
___
Underscores
表情
<!-- Emoji -->
:smile: :+1: :-1: :blush: :smiley: :relaxed: :smirk: :heart_eyes:
:kissing_heart: :kissing_closed_eyes: :flushed: :relieved:
:satisfied: :grin: :wink: :stuck_out_tongue_winking_eye:
:stuck_out_tongue_closed_eyes: :grinning: :kissing:
:kissing_smiling_eyes: :stuck_out_tongue: :sleeping: :worried:
:frowning: :anguished: :open_mouth: :grimacing: :confused: :hushed:
HTML
<!-- HTML -->
<dl>
<dt>Definition list</dt>
<dd>Is something people use sometimes.</dd>
<dt>Markdown in HTML</dt>
<dd>Does *not* work **very** well. Use HTML <em>tags</em>.</dd>
</dl>
公式
- Inline
- Block
<!-- Inline -->
The sum of $a$ and $b$ is $c$.
<!-- Block -->
$$
a^2 + b^2 = c^2
$$