Markdown_cheetsheet

标题

# Header 1 #
## Header 2 ##
### Header 3 ###
#### Header 4 ####
##### Header 5 #####

右侧的 # 可以省略

带 ID 的标题

## Markdown plus h2 with a custom ID ## {#id-goes-here}
[Link back to H2](#id-goes-here)

段落

This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one
line (or many), and can drone on for hours.

链接

Here is a Markdown link to [Warped](http://warpedvisions.org), and a literal <http://link.com/>.
Now some SimpleLinks, like one to [google] (automagically links to are-you-
feeling-lucky), a [wiki: test] link to a Wikipedia page, and a link to
[foldoc: CPU]s at foldoc.

格式标记

Now some inline markup like _italics_, **bold**, and `code()`. Note that underscores in
words are ignored in Markdown Extra.

图片

![picture alt](/images/photo.jpg)

引用

> Blockquotes are like quoted text in email replies
>> And, they can be nested

列表

* Bullet lists are easy too
- Another one
+ Another one
1. A numbered list
2. Which is numbered
3. With periods and a space

代码

And now some code:

// Code is just text indented a bit
which(is_easy) to_remember();

代码块

// Markdown extra adds un-indented code blocks too
if (this_is_more_code == true && !indented) {
// tild wrapped code blocks, also not indented
}

诗歌

Text with
two trailing spaces
(on the right)
can be used
for things like poems

水平线

* * * *
****
--------------------------

表格

| Header | Header | Right |
| ------ | ------ | -----: |
| Cell | Cell | $10 |
| Cell | Cell | $20 |
* Outer pipes on tables are optional
* Colon used for alignment (right versus left)

定义

Bottled water
: $ 1.25
: $ 1.55 (Large)
Milk
Pop
: $ 1.75
  • Multiple definitions and terms are possible
  • Definitions can include multiple paragraphs too

附录

*[ABBR]: Markdown plus abbreviations (produces an <abbr> tag)