Each document section is indicated with either a hash heading (#) or underlines:
# An H1 Heading Goes Here, or #
H1 Headings are Underlined
==========================
Subsections use hyphen underlining, or (##) heading:
## This is a sub-heading ##
And this is also a sub-heading
------------------------------
Hash marks can indicate additional levels of sub-sub- headings, up to six:
###### This is a H6 sub-heading ######
Break lines are inserted with three or more hyphens, asterisks, or underscores:
___
- - -
*******
The following table displays inline or embedded markups for text styles:
Markup | Result |
---|---|
*emphasized text* | emphasized text |
_emphasized text_ | emphasized text |
**bold text** | bold text |
__bold text__ | bold text |
``unformatted text`` | unformatted text |
Paragraphs are indicated by entering two newlines, which shows as a blank line in the text. Spaces and single newlines are ignored except in lists or quotes.
Code blocks are set off by indenting 4 or more spaces, or 1 tab:
| This will be a code block or command
| This is another line in the code block
This will be a code block or command
This is another line in the code block
Use hyphens, asterisks, or plusses to create bulleted (unordered) lists:
| * This is a list with an embedded list
| + + Here is an embedded line
| + + This is the second embedded line
| * This is the second main line of the list
Any numbered lines with periods will form an ordered list:
1. Use number 1. on the first line of the list.
5. Follow the first line with additional numbered lines.
3. The order of the lines matters, but the number sequence is irrelevant.
List items may include paragraphs provided hanging indents are used for the first line of each paragraph.
Markdown syntax does not include a specification for tables.
Markdown supports two styles for links: inline and reference. With either style, use square brackets surrounding the name text you want to display.
Inline-style links use parentheses immediately after the link text. For example:
This is an [example link](http://example.com/).
This is an example link
Reference-style links allow you to refer to your links by names, which you define elsewhere in your document:
I get 10 times more traffic from [Google][1] than from
[Yahoo][2] or [MSN][3].
[1]: http://google.com/ "Google"
[2]: http://search.yahoo.com/ "Yahoo Search"
[3]: http://search.msn.com/ "MSN Search"
I get 10 times more traffic from Google than from Yahoo Search or MSN Search.
To refer to a relative path on the local system or server, replace the protocol “http://” with a simple slash “/” in the preceding link format:
See my [About](/about/) page for details.
See my about page for details.
Image syntax is very much like link syntax, with both inline and reference forms:
![alt text](/_images/00_testimg.jpg "Title")
![alt text][id]
[id]: /_images/00_testimg.jpg "Title"
Both of the above examples produce the same output:
Footnotes
[1] | http://github.github.com/github-flavored-markdown/sample_content.html |
[2] | http://daringfireball.net/projects/markdown/syntax |