1<h1>GitHub Flavored Markdown</h1>
2<p><em>View the <a href="http://github.github.com/github-flavored-markdown/sample_content.html">source of this content</a>.</em></p>
3<p>Let's get the whole "linebreak" thing out of the way. The next paragraph contains two phrases separated by a single newline character:</p>
4<p>Roses are red
5Violets are blue</p>
6<p>The next paragraph has the same phrases, but now they are separated by two spaces and a newline character:</p>
7<p>Roses are red<br />
8Violets are blue</p>
9<p>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.</p>
10<h2>A bit of the GitHub spice</h2>
11<p>In addition to the changes in the previous section, certain references are auto-linked:</p>
12<ul>
13<li>SHA: be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2</li>
14<li>User@SHA ref: mojombo@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2</li>
15<li>User/Project@SHA: mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2</li>
16<li>#Num: #1</li>
17<li>User/#Num: mojombo#1</li>
18<li>User/Project#Num: mojombo/god#1</li>
19</ul>
20<p>These are dangerous goodies though, and we need to make sure email addresses don't get mangled:</p>
21<p>My email addy is tom@github.com.</p>
22<h2>Math is hard, let's go shopping</h2>
23<p>In first grade I learned that 5 &gt; 3 and 2 &lt; 7. Maybe some arrows. 1 -&gt; 2 -&gt; 3. 9 &lt;- 8 &lt;- 7.</p>
24<p>Triangles man! a^2 + b^2 = c^2</p>
25<h2>We all like making lists</h2>
26<p>The above header should be an H2 tag. Now, for a list of fruits:</p>
27<ul>
28<li>Red Apples</li>
29<li>Purple Grapes</li>
30<li>Green Kiwifruits</li>
31</ul>
32<p>Let's get crazy:</p>
33<ol>
34<li><p>This is a list item with two paragraphs. Lorem ipsum dolor
35sit amet, consectetuer adipiscing elit. Aliquam hendrerit
36mi posuere lectus.</p>
37<p>Vestibulum enim wisi, viverra nec, fringilla in, laoreet
38vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
39sit amet velit.</p>
40</li>
41<li><p>Suspendisse id sem consectetuer libero luctus adipiscing.</p>
42</li>
43</ol>
44<p>What about some code <strong>in</strong> a list? That's insane, right?</p>
45<ol>
46<li><p>In Ruby you can map like this:</p>
47<pre><code> ['a', 'b'].map { |x| x.uppercase }
48</code></pre>
49</li>
50<li><p>In Rails, you can do a shortcut:</p>
51<pre><code> ['a', 'b'].map(&amp;:uppercase)
52</code></pre>
53</li>
54</ol>
55<p>Some people seem to like definition lists</p>
56<dl>
57  <dt>Lower cost</dt>
58  <dd>The new version of this product costs significantly less than the previous one!</dd>
59  <dt>Easier to use</dt>
60  <dd>We've changed the product so that it's much easier to use!</dd>
61</dl>
62<h2>I am a robot</h2>
63<p>Maybe you want to print <code>robot</code> to the console 1000 times. Why not?</p>
64<pre><code>def robot_invasion
65  puts("robot " * 1000)
66end
67</code></pre>
68<p>You see, that was formatted as code because it's been indented by four spaces.</p>
69<p>How about we throw some angle braces and ampersands in there?</p>
70<pre><code>&lt;div class="footer"&gt;
71    &amp;copy; 2004 Foo Corporation
72&lt;/div&gt;
73</code></pre>
74<h2>Set in stone</h2>
75<p>Preformatted blocks are useful for ASCII art:</p>
76<pre>
77             ,-.
78    ,     ,-.   ,-.
79   / \   (   )-(   )
80   \ |  ,.>-(   )-<
81    \|,' (   )-(   )
82     Y ___`-'   `-'
83     |/__/   `-'
84     |
85     |
86     |    -hrr-
87  ___|_____________
88</pre>
89<h2>Playing the blame game</h2>
90<p>If you need to blame someone, the best way to do so is by quoting them:</p>
91<blockquote><p>I, at any rate, am convinced that He does not throw dice.</p>
92</blockquote>
93<p>Or perhaps someone a little less eloquent:</p>
94<blockquote><p>I wish you'd have given me this written question ahead of time so I
95could plan for it... I'm sure something will pop into my head here in
96the midst of this press conference, with all the pressure of trying to
97come up with answer, but it hadn't yet...</p>
98<p>I don't want to sound like
99I have made no mistakes. I'm confident I have. I just haven't - you
100just put me under the spot here, and maybe I'm not as quick on my feet
101as I should be in coming up with one.</p>
102</blockquote>
103<h2>Table for two</h2>
104<table>
105  <tr>
106    <th>ID</th><th>Name</th><th>Rank</th>
107  </tr>
108  <tr>
109    <td>1</td><td>Tom Preston-Werner</td><td>Awesome</td>
110  </tr>
111  <tr>
112    <td>2</td><td>Albert Einstein</td><td>Nearly as awesome</td>
113  </tr>
114</table>
115<h2>Crazy linking action</h2>
116<p>I get 10 times more traffic from <a href="http://google.com/" title="Google">Google</a> than from
117<a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/" title="MSN Search">MSN</a>.</p>
118