markdown语法
markdown 常用语法介绍
| HEADER
| EMPHASIS
| HORIZONTAL_LINE
| LIST
| TABLE
| LINK
| IMAGE
| QUOTE |
| COMMENT
| CODE
| GITHUB_EMOJI
| OTHERS
| HTML_TAGS
| TEXT_ART |
HEADER
# Header1
## Header2
### Header3
#### Header4
##### Header5
###### Header6
H1
===
H2
---
Header1
Header2
Header3
Header4
Header5
Header6
H1
H2
EMPHASIS
*Italic1* _Italic2_
**Bold1** __Bold2__
***Bold_Italic***
~~Strikethrough~~
Italic1 Italic2
Bold1 Bold2
_Bold_Italic_ Strikethrough
HORIZONTAL LINE
---
***
___
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:
- item-1
- sub-item-1
- sub-item-2
- item-2
- sub-item-3
- sub-item-4
- item-3
TABLE
1 | Table Header-1 | Table Header-2 | Table Header-3 |
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 |
LINK
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
IMAGE
![GitHub Logo](https://cloud.githubusercontent.com/assets/5456665/13322882/e74f6626-dc00-11e5-921d-f6d024a01eaa.png "GitHub")
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.
COMMENT
[/]:# (This is a comment, you cannot see it)
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 | for(int i=0; i<10; i++){ |
GITHUB EMOJI
:octocat: :rabbit: :alien: :+1: :bee: :bell: :ghost: :bulb: :imp:
:octocat: :rabbit: :alien: :+1: :bee: :bell: :ghost: :bulb: :imp:
OTHERS
Which one does @torvalds like most?
- [ ] tiger \#
- [ ] whale \*
- [X] octocat \!
Which one does @torvalds like most?
- tiger #
- whale *
- octocat !
HTML TAGS
<div align="center">
<kbd>Markdown</kbd> also supports █ <b>HTML</b> █ <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>
TEXT ART
1 | root ┌───────────────────────┐ ┌──────────────┐ |
References
- https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
- https://daringfireball.net/projects/markdown/syntax
- http://learn.getgrav.org/content/markdown
- https://confluence.atlassian.com/bitbucketserver/markdown-syntax-guide-776639995.html
转载资源地址:
https://gist.github.com/MinhasKamal/7fdebb7c424d23149140
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Droplets!
评论