Markdown Reference
This document contains some of the most commonly used markdown syntax.
![]()
Line Break
Markdown treat new line in source file
as space.
A new line can be achieved by [two space + hit enter]
A new paragraph is achieved by an empty line. [hit enter twice]
Text Style
italic or italic
bold or bold
italic and bold
strike through
Text Block
A quote block using >.
I’ve always been more interested in the future than in the past.
A code block using ```.
1 |
|
A code block using [empty line + 4 space].
1 |
|
A code block with color.
1 |
|
A inline code piece.
Let’s try select * from table;
Table
| Tables | Are | Cool |
|---|---|---|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
Colons can be used to align columns.
The outer pipes (|) are optional.
There must be at least 3 dashes separating each header cell.
List
Use * - + for unordered list.
- banana
- o-range
- apple
Use 1,2,3 for ordered list.
- item1
- item2, this can be any number
- item3
Use indent for sublist.
- food
- fruit (1 space)
- apple (2 space)
- fuji apple
- apple (2 space)
- water
Use indent for ordered list
- section 1
- section 1.A (1 space)
- section 1.A.a (3 space, don’t know why)
- section 1.A.a.I (3 space)
This sub section lines up well.
- section 1.A.a.I (3 space)
- section 1.A.a (3 space, don’t know why)
Use [X] for todo list
- this is a complete item
- this is an incomplete item
Link
Links are automatic.
This link is clickable http://github.com
You can visit GitHub.
Picture
Pictures are links with prefix of !.
Do it like a link:
![]()
Define a url and refer to it:
![]()
Escape
Use \ for escape special characters. (*, `, etc)
Header
Use # 1 - 6 times for headers.
-
This is an <h1> tag
-
This is an <h2> tag
-
This is an <h6> tag
Emoji
![]()
![]()
![]()
![]()
![]()