Markdown

学习/开发

Headers

  1. # Heading 1
  2. ## Heading 2
  3. ### Heading 3

Heading 1

Heading 2

Heading 3

Line separator

  1. ***
  2. ---
  3. ___

Emphasis

  1. **bold**
  2. __bold__
  3. *italic*
  4. _italic_
  5. ~~strikethrough~~
  6. ~underline~

bold
bold

italic
italic

strikethrough

Lists

Unordered

  1. * Item1
  2. - Item 2
  3. + Item 2a
  4. Item 2b
  • Item1
  • Item 2
  • Item 2a
  • Item 2b

Ordered

  1. 1. Item1
  2. 2. Item 2
  3. 3. Item 3
  4. * Item 3a
  5. * Item 3b
  1. Item1
  2. Item 2
  3. Item 3
  • Item 3a
  • Item 3b

Task

  1. - [ ] empty checkbox
  2. - [x] done checkbox
  • empty checkbox
  • done checkbox

Blockquote

  1. > Blockquote

Quote

Links

  1. http://github.com - automatic!
  2. [GitHub](http://github.com)

http://github.com - automatic!
GitHub

Images

  1. ![GitHub Logo](https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png)
  2. Format: ![Alt Text](url)

markdown 书写语法参考 - 图1

Code

Inline

  1. I think you should use an `<addr>` element here instead.

I think you should use an <addr> element here instead.

Block

  1. function sayHi(name) {
  2. console.log(`Hi, ${name}`)
  3. }

Tables

  1. First Header | Second Header
  2. ------------ | -------------
  3. Content from cell 1 | Content from cell 2
  4. Content in the first column | Content in the second column

Username @mentions

  1. @mention

Issue references

  1. #1
  2. github-flavored-markdown#1
  3. defunkt/github-flavored-markdown#1

Emoji

  1. GitHub supports emoji! :+1: :sparkles: :camel: :tada: :rocket: :metal: :octocat:

Emoji Cheat Sheet