1 GitHub Flavored Markdown
2 ================================
4 *View the [source of this content](http://github.github.com/github-flavored-markdown/sample_content.html).*
6 Let's get the whole "linebreak" thing out of the way. The next paragraph contains two phrases separated by a single newline character:
11 The next paragraph has the same phrases, but now they are separated by two spaces and a newline character:
16 Oh, and one thing I cannot stand is the mangling of words with multiple underscores in them like perform_complicated_task or do_this_and_do_that_and_another_thing.
18 A bit of the GitHub spice
19 -------------------------
21 In addition to the changes in the previous section, certain references are auto-linked:
23 * SHA: be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
24 * User@SHA ref: mojombo@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
25 * User/Project@SHA: mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
27 * User/#Num: mojombo#1
28 * User/Project#Num: mojombo/god#1
30 These are dangerous goodies though, and we need to make sure email addresses don't get mangled:
32 My email addy is tom@github.com.
34 Math is hard, let's go shopping
35 -------------------------------
37 In first grade I learned that 5 > 3 and 2 < 7. Maybe some arrows. 1 -> 2 -> 3. 9 <- 8 <- 7.
39 Triangles man! a^2 + b^2 = c^2
41 We all like making lists
42 ------------------------
44 The above header should be an H2 tag. Now, for a list of fruits:
52 1. This is a list item with two paragraphs. Lorem ipsum dolor
53 sit amet, consectetuer adipiscing elit. Aliquam hendrerit
56 Vestibulum enim wisi, viverra nec, fringilla in, laoreet
57 vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
60 2. Suspendisse id sem consectetuer libero luctus adipiscing.
62 What about some code **in** a list? That's insane, right?
64 1. In Ruby you can map like this:
66 ['a', 'b'].map { |x| x.uppercase }
68 2. In Rails, you can do a shortcut:
70 ['a', 'b'].map(&:uppercase)
72 Some people seem to like definition lists
76 <dd>The new version of this product costs significantly less than the previous one!</dd>
77 <dt>Easier to use</dt>
78 <dd>We've changed the product so that it's much easier to use!</dd>
84 Maybe you want to print `robot` to the console 1000 times. Why not?
90 You see, that was formatted as code because it's been indented by four spaces.
92 How about we throw some angle braces and ampersands in there?
95 © 2004 Foo Corporation
101 Preformatted blocks are useful for ASCII art:
117 Playing the blame game
118 ----------------------
120 If you need to blame someone, the best way to do so is by quoting them:
122 > I, at any rate, am convinced that He does not throw dice.
124 Or perhaps someone a little less eloquent:
126 > I wish you'd have given me this written question ahead of time so I
127 > could plan for it... I'm sure something will pop into my head here in
128 > the midst of this press conference, with all the pressure of trying to
129 > come up with answer, but it hadn't yet...
131 > I don't want to sound like
132 > I have made no mistakes. I'm confident I have. I just haven't - you
133 > just put me under the spot here, and maybe I'm not as quick on my feet
134 > as I should be in coming up with one.
141 <th>ID</th><th>Name</th><th>Rank</th>
144 <td>1</td><td>Tom Preston-Werner</td><td>Awesome</td>
147 <td>2</td><td>Albert Einstein</td><td>Nearly as awesome</td>
154 I get 10 times more traffic from [Google] [1] than from
155 [Yahoo] [2] or [MSN] [3].
157 [1]: http://google.com/ "Google"
158 [2]: http://search.yahoo.com/ "Yahoo Search"
159 [3]: http://search.msn.com/ "MSN Search"