Markdown Syntax Memo

While using hexo blogging system or other blogging system like: Octopress, Jekyll, one of the most important thing is to learn markdown syntax. I don’t define it as language, because it is easy to use. The philosophy of this language is the simple the better.

#Headers

1
2
3
4
5
6
# H1
## H2
### H3
#### H4
##### H5
###### H6

Alternatively, for H1 and H2, an underline-ish style:

1
2
3
4
5
Alt-H1
======
Alt-H2
------

#Emphasis

1
2
3
4
Emphasis, aka italics, with *asterisks* or _underscores_.
Strong emphasis, aka bold, with **asterisks** or __underscores__.
Combined emphasis with **asterisks and _underscores_**.
Strikethrough uses two tildes. ~~Scratch this.~~

Emphasis, aka italics, with asterisks or underscores.
Strong emphasis, aka bold, with asterisks or underscores.
Combined emphasis with asterisks and underscores.
Strikethrough uses two tildes. Scratch this.

#Listing

1
2
3
4
5
6
7
8
9
1. First ordered list item
2. Another item
* Unordered sub-list. (a tab before the next level list)
1. Actual numbers don't matter, just that it's a number
1. Ordered sub-list
4. And another item.
* Unordered list can use asterisks
- Or minuses
+ Or pluses

  1. First ordered list item
  2. Another item
    • Unordered sub-list. (a tab before the next level list)
  3. Actual numbers don’t matter, just that it’s a number
    1. Ordered sub-list
  4. And another item.
  • Unordered list can use asterisks
  • Or minuses
  • Or pluses

#Codes

1
Inline `code` has `back-ticks around` it.

Inline code has back-ticks around it.

1
2
3
4
5
or using 3 back-ticks and name of the language to add codes excerpt (before and after).
undefined
undefined

#Links
There are two ways to create links.

1
2
3
4
5
6
7
8
9
10
[inline-style link](https://www.google.com)
[inline-style link with title](https://www.google.com "Google's Homepage")
[reference-style link][Arbitrary case-insensitive reference text]
[relative reference to a repository file](../)
[You can use numbers for reference-style link definitions][1]
Or leave it empty and use the [link text itself]
Some text to show that the reference links can follow later.
[arbitrary case-insensitive reference text]: https://www.mozilla.org
[1]: http://google.com
[link text itself]: http://www.reddit.com

#Images
Inline-style:
GitHub Mark

Reference-style:
GitHub Octocat

#Quotes

1
> Quotation

Quotation

#Line seperator

1
2
3
4
5
6
7
3 or More
---
Hyphens
***
Asterisks
___
Underscores