markdown 常用语法介绍

MARKDOWN SYNTAX

| HEADER
| EMPHASIS
| HORIZONTAL_LINE
| LIST
| TABLE
| LINK
| IMAGE
| QUOTE |

| COMMENT
| CODE
| GITHUB_EMOJI
| OTHERS
| HTML_TAGS
| TEXT_ART |




# Header1
## Header2
### Header3
#### Header4
##### Header5
###### Header6
H1
===
H2
---

Header1

Header2

Header3

Header4

Header5
Header6

H1

H2


↥ back to top

EMPHASIS

*Italic1* _Italic2_
**Bold1** __Bold2__
***Bold_Italic***
~~Strikethrough~~

Italic1 Italic2

Bold1 Bold2

_Bold_Italic_

Strikethrough


↥ back to top

HORIZONTAL LINE

---
***
___




↥ back to top

LIST

unordered list:

* item-1
  * sub-item-1
  * sub-item-2
- item-2
  - sub-item-3
  - sub-item-4
+ item-3
  + sub-item-5
  + sub-item-6


ordered list:

1. item-1
 1. sub-item-1
 2. sub-item-2
2. item-2
 1. sub-item-3
 2. sub-item-4
3. item-3

unordered list:

  • item-1
    • sub-item-1
    • sub-item-2
  • item-2
    • sub-item-3
    • sub-item-4
  • item-3
    • sub-item-5
    • sub-item-6

ordered list:

  1. item-1
  2. sub-item-1
  3. sub-item-2
  4. item-2
  5. sub-item-3
  6. sub-item-4
  7. item-3

↥ back to top

TABLE

1
2
3
4
5
Table Header-1 | Table Header-2 | Table Header-3
:--- | :---: | ---:
Table Data-1 | Table Data-2 | Table Data-3
TD-4 | Td-5 | TD-6
Table Data-7 | Table Data-8 | Table Data-9
Table Header-1 Table Header-2 Table Header-3
Table Data-1 Table Data-2 Table Data-3
TD-4 Td-5 TD-6
Table Data-7 Table Data-8 Table Data-9

↥ back to top

https://github.com/MinhasKamal/github-markdown-syntax
[GitHub](https://github.com/MinhasKamal/github-markdown-syntax)
[click](https://github.com/MinhasKamal/github-markdown-syntax "GitHub Markdown Syntax")
[README](/README.md)
[Image](#image)

https://github.com/MinhasKamal/github-markdown-syntax
GitHub
click
README
Image


↥ back to top

IMAGE

![GitHub Logo](https://cloud.githubusercontent.com/assets/5456665/13322882/e74f6626-dc00-11e5-921d-f6d024a01eaa.png "GitHub")

GitHub Logo


↥ back to top

QUOTE

> Stay hungry; stay foolish.
>> Quality is better than quantity.
>>> Life is not fair; get used to it.

Stay hungry; stay foolish.

Quality is better than quantity.

Life is not fair; get used to it.


↥ back to top

COMMENT

[/]:# (This is a comment, you cannot see it)

↥ back to top

CODE

inline code- `int i=0`

block code-
1
2
3
for(int i=0; i<10; i++){
printf("Hallow World! \n");
}

inline code- int i=0

block code-

1
2
3
for(int i=0; i<10; i++){
printf("Hallow World! \n");
}

↥ back to top

GITHUB EMOJI

:octocat: :rabbit: :alien: :+1: :bee: :bell: :ghost: :bulb: :imp:

:octocat: :rabbit: :alien: :+1: :bee: :bell: :ghost: :bulb: :imp:

more…


↥ back to top

OTHERS

Which one does @torvalds like most?
- [ ] tiger \#
- [ ] whale \*
- [X] octocat \!

Which one does @torvalds like most?

  • tiger #
  • whale *
  • octocat !

↥ back to top

HTML TAGS

<div align="center">
    <kbd>Markdown</kbd> also supports &#9608; <b>HTML</b> &#9608; <i>syntax</i> <!--invisible--> <br/>
    <a href="http://www.youtube.com/watch?feature=player_embedded&v=vq2jYFZVMDA" target="_blank">
        <img src="http://img.youtube.com/vi/vq2jYFZVMDA/0.jpg" alt="GitHub Video"
        border="10" width="460" height="250"/>
    </a>
</div>
Markdown also supports █ HTMLsyntax
GitHub Video

↥ back to top

TEXT ART

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
root                         ┌───────────────────────┐             ┌──────────────┐
├─branch-1 | Vehicle ├── has-a ───→| Engine |
│ ├─sub-branch-1 └───────────────────────┘ └──────────────┘
│ └─sub-branch-2 ↑ ↑ ↑ ↑ ------\\
├─branch-2 | | | | ┤ ^_^ |
│ └─sub-branch-3 | is-a | | └──-──┘
│ ├─a | | | |
│ └─b | ┌────┴─────────┐ | |
├─branch-3 is-a | Toyota ├── has-a ───┘ | ------\\
│ └─sub-branch-4 | └──────────────┘ | ┤ @_@ |
└─branch-4 | is-a └──-──┘
├─sub-branch-5 | |
├─sub-branch-6 ┌─────┴──────────┐ ┌────────┴────┐
│ └─c │ Lamborghini ├───────has-a ───────→│ V12 Engine │
└─sub-branch-7 └────────────────┘ └─────────────┘

↥ back to top

References


↥ back to top

转载资源地址:
https://gist.github.com/MinhasKamal/7fdebb7c424d23149140