@ -2,32 +2,32 @@
Markdown: Syntax
Markdown: Syntax
================
================
* [Markdown Basics][]
* [Markdown Basics]
* _[Syntax]( "Markdown Syntax Documentation")_
* _[Syntax]( "Markdown Syntax Documentation")_
* [License][]
* [License]
- - - - -
- - - - -
* [Overview][]
* [Overview]
* [Philosophy][]
* [Philosophy]
* [Inline HTML][]
* [Inline HTML]
* [Automatic Escaping for Special Characters][]
* [Automatic Escaping for Special Characters]
* [Block Elements][]
* [Block Elements]
* [Paragraphs and Line Breaks][]
* [Paragraphs and Line Breaks]
* [Headers][]
* [Headers]
* [Blockquotes][]
* [Blockquotes]
* [Lists][]
* [Lists]
* [Style Sheet][]
* [Style Sheet]
* [Code Blocks][]
* [Code Blocks]
* [Horizontal Rules][]
* [Horizontal Rules]
* [Span Elements][]
* [Span Elements]
* [Links][]
* [Links]
* [Emphasis][]
* [Emphasis]
* [Code][]
* [Code]
* [Images][]
* [Images]
* [Miscellaneous][]
* [Miscellaneous]
* [Backslash Escapes][]
* [Backslash Escapes]
* [Automatic Links][]
* [Automatic Links]
**Note:** This document is itself written using Markdown; you
**Note:** This document is itself written using Markdown; you
@ -408,14 +408,14 @@ list number ahead which again should be effective in just about any
browser available today.
browser available today.
A right parenthesis ')' may be used in place of the `.` for any of the
A right parenthesis ')' may be used in place of the `.` for any of the
numbering styles but it requires the [style sheet][] to be included or
numbering styles but it requires the [style sheet] to be included or
you will end up just seeing `.` instead. For example this list:
you will end up just seeing `.` instead. For example this list:
a) Alpha
a) Alpha
b) Beta
b) Beta
c) Gamma
c) Gamma
will end up being displayed like this without the [style sheet][] :
will end up being displayed like this without the [style sheet]:
a. Alpha
a. Alpha
b. Beta
b. Beta
@ -440,7 +440,7 @@ list marker.
To create two distinct lists when there are only blank lines between the
To create two distinct lists when there are only blank lines between the
end of the first list and the start of the second, a separator line must
end of the first list and the start of the second, a separator line must
be inserted. ([Horizontal rules][] work just fine for this).
be inserted. ([Horizontal rules] work just fine for this).
If desired, an HTML-style comment (e.g. `<!-- -->` ) may be used for this
If desired, an HTML-style comment (e.g. `<!-- -->` ) may be used for this
purpose provided it is preceded and followed by at least one blank line.
purpose provided it is preceded and followed by at least one blank line.
@ -775,11 +775,15 @@ are equivalent.
The *implicit link name* shortcut allows you to omit the name of the
The *implicit link name* shortcut allows you to omit the name of the
link, in which case the link text itself is used as the name.
link, in which case the link text itself is used as the name.
Just use an empty set of square brackets -- e.g., to link the word
Just use an empty set of square brackets (or none) -- e.g., to link the
"Google" to the google.com web site, you could simply write:
word "Google" to the google.com web site, you could simply write:
[Google][]
[Google][]
Or even just this:
[Google]
And then define the link:
And then define the link:
[Google]: http://google.com/
[Google]: http://google.com/
@ -787,12 +791,18 @@ And then define the link:
Because link names may contain spaces, this shortcut even works for
Because link names may contain spaces, this shortcut even works for
multiple words in the link text:
multiple words in the link text:
Visit [Daring Fireball][] for more information.
Visit [Daring Fireball] for more information.
And then define the link:
And then define the link:
[Daring Fireball]: http://daringfireball.net/
[Daring Fireball]: http://daringfireball.net/
Text inside square brackets is left completely unchanged (including the
surrounding brackets) _unless_ it matches a link definition. Furthermore,
the single pair of surrounding square brackets case is always checked
for last so you may only omit the trailing `[]` of an *implicit link name*
shortcut when the result would still be unambiguous.
Link definitions can be placed anywhere in your Markdown document. I
Link definitions can be placed anywhere in your Markdown document. I
tend to put them immediately after each paragraph in which they're
tend to put them immediately after each paragraph in which they're
used, but if you want, you can put them all at the end of your
used, but if you want, you can put them all at the end of your
@ -817,8 +827,8 @@ Here's an example of reference links in action:
Using the implicit link name shortcut, you could instead write:
Using the implicit link name shortcut, you could instead write:
I get 10 times more traffic from [Google][] than from
I get 10 times more traffic from [Google] than from
[Yahoo][] or [MSN][ ].
[Yahoo] or [MSN].
[google]: http://google.com/ "Google"
[google]: http://google.com/ "Google"
[yahoo]: http://search.yahoo.com/ "Yahoo Search"
[yahoo]: http://search.yahoo.com/ "Yahoo Search"