Markdown is a way to style text on the web. You control the display of the
document; formatting words as bold or italic, adding images, and creating lists
are just a few of the things we can do with Markdown. Mostly, Markdown is just
regular text with a few non-alphabetic characters thrown in, like # or *.
[Markdown Reference] [Mastering Markdown]
Phrase Emphasis
*italic* **bold** _italic_ __bold__
italic bold
italic bold
Links-Inline(titles are optional)
An [example](http://url.com/ "Title")
An example
Links-Reference-style labels(titles are optional)
[example][id] reference-style link. [example] [id] reference-style link. [example][] reference-style link. [id]: http://example.com/ "Optional Title Here" [id]: http://example.com/ 'Option Tile Here' [id]: http://example.com/ (Option Tile Here)
reference-style link: GitHub [Twitter][tweet] [Alimy][]
[tweet]: https://twitter.com/alimy86 ‘alimy’s twitter’ [Alimy]: http://alimy.me/ (alimy’s blog)
Images-Inline(titles are optional)
![alt text](/path/img.jpg "Optional Title Here")
Images-Reference-style(titles are optional)
![alt text][id]
[id]: /url/to/img.jpg "Optional Title Here"
Headers-Setext-style
Header 1
========
Header 2
--------
Header 1
Header 2
Headers-Atx-style(closing #’s are optional)
# Header 1 #
## Header 2 ##
### Header 3
#### Header 4
##### Header 5
###### Header 6
Header 1
Header 2
Header 3
Header 4
Header 5
Header 6
List-Ordered,without paragraphs
> 1. first > 2. second > 3. Three
List-Unordered,with paragraphs
> * A list item.
> with multiple paragraphs
> * Bar
Blockquotes
> Email-style angle brackets
> are used for blockquotes.
> > And, they can be nested.
> #### Headers in blockquotes
>
> * You can quote a list.
> * Etc.
Preview below:
Email-style angle brackets are used for blockquotes.
And, they can be nested.
Headers in blockquotes
- You can quote a list.
- Etc.
Code Spans
`<code>` spans are delimited by backticks.
You can include literal backticks like `` `this` ``.
Preformatted Code Blocks Indent every line of a code block by at least 4 spaces or 1 tab.
This is a normal paragraph.
This is a preformatted
code block.
Preview below:
This is a normal paragraph.
This is a preformatted
code block.
Horizontal Rules
---
***
* * *
- - - -
Manual Line Breaks
end a line with two or more spaces:
Roses are red, Violets are blue.
Preview below:
Roses are red,
Violets are blue.