Skip to content
This repository
Browse code

fix some stuff up

  • Loading branch information...
commit 16c999e8c71134401a78d4d46435517b2271d6ac 1 parent e0d601e
Tom Preston-Werner authored April 10, 2009
26  _site/index.html
@@ -37,7 +37,7 @@
37 37
 <p>If you prefer to learn by example, see the following source and result:</p>
38 38
 
39 39
 <ul>
40  
-<li><a href="http://tom.preston-werner.com/github-flavored-markdown/sample_content.gfm">Source</a></li>
  40
+<li><a href="sample_content.html">Source</a></li>
41 41
 <li><a href="http://github.com/mojombo/github-flavored-markdown/issues/#issue/1">Result</a></li>
42 42
 </ul>
43 43
 
@@ -61,7 +61,7 @@
61 61
 
62 62
 <h3>Multiple underscores in words</h3>
63 63
 
64  
-<p>It is not reasonable to italicize just <em>part</em> of a word, especially when you're dealing with code and names often appear with multiple underscores. Therefor, GFM ignores multiple underscore in words.</p>
  64
+<p>It is not reasonable to italicize just <em>part</em> of a word, especially when you're dealing with code and names often appear with multiple underscores. Therefore, GFM ignores multiple underscores in words.</p>
65 65
 
66 66
 <pre><code>perform_complicated_task
67 67
 do_this_and_do_that_and_another_thing
@@ -76,13 +76,23 @@
76 76
 
77 77
 <p>In addition to the changes in the previous section, certain references are auto-linked:</p>
78 78
 
  79
+<pre><code>* SHA: be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
  80
+* User@SHA ref: mojombo@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
  81
+* User/Project@SHA: mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
  82
+* \#Num: #1
  83
+* User/#Num: mojombo#1
  84
+* User/Project#Num: mojombo/god#1
  85
+</code></pre>
  86
+
  87
+<p>becomes</p>
  88
+
79 89
 <ul>
80  
-<li>SHA: be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2</li>
81  
-<li>User@SHA ref: mojombo@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2</li>
82  
-<li>User/Project@SHA: mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2</li>
83  
-<li>#Num: #1</li>
84  
-<li>User/#Num: mojombo#1</li>
85  
-<li>User/Project#Num: mojombo/god#1</li>
  90
+<li>SHA: <a href="/mojombo/github-flavored-markdown/commit/be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2">be6a8cc</a></li>
  91
+<li>User@SHA ref: <a href="/mojombo/github-flavored-markdown/commit/be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2">mojombo@be6a8cc</a></li>
  92
+<li>User/Project@SHA: <a href="/mojombo/god/commit/be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2">mojombo/god@be6a8cc</a></li>
  93
+<li>#Num: <a href="/mojombo/github-flavored-markdown/issues/#issue/1" class="internal">#1</a></li>
  94
+<li>User/#Num: <a href="/mojombo/github-flavored-markdown/issues/#issue/1">mojombo#1</a></li>
  95
+<li>User/Project#Num: <a href="/mojombo/god/issues/#issue/1">mojombo/god#1</a></li>
86 96
 </ul>
87 97
 
88 98
 
169  _site/sample_content.html
... ...
@@ -0,0 +1,169 @@
  1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3
+
  4
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  5
+<head>
  6
+  <title>Example Source</title>
  7
+</head>
  8
+<body>
  9
+<pre>GitHub Flavored Markdown
  10
+================================
  11
+
  12
+*View the [source of this content](http://tom.preston-werner.com/github-flavored-markdown/sample_content.html).*
  13
+
  14
+Let's get the whole "linebreak" thing out of the way. The next paragraph contains two phrases separated by a single newline character:
  15
+
  16
+Roses are red
  17
+Violets are blue
  18
+
  19
+The next paragraph has the same phrases, but now they are separated by two spaces and a newline character:
  20
+
  21
+Roses are red  
  22
+Violets are blue
  23
+
  24
+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.
  25
+
  26
+A bit of the GitHub spice
  27
+-------------------------
  28
+
  29
+In addition to the changes in the previous section, certain references are auto-linked:
  30
+
  31
+* SHA: be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
  32
+* User@SHA ref: mojombo@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
  33
+* User/Project@SHA: mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
  34
+* \#Num: #1
  35
+* User/#Num: mojombo#1
  36
+* User/Project#Num: mojombo/god#1
  37
+
  38
+These are dangerous goodies though, and we need to make sure email addresses don't get mangled:
  39
+
  40
+My email addy is tom@github.com.
  41
+
  42
+Math is hard, let's go shopping
  43
+-------------------------------
  44
+
  45
+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.
  46
+
  47
+Triangles man! a^2 + b^2 = c^2
  48
+
  49
+We all like making lists
  50
+------------------------
  51
+
  52
+The above header should be an H2 tag. Now, for a list of fruits:
  53
+
  54
+* Red Apples
  55
+* Purple Grapes
  56
+* Green Kiwifruits
  57
+
  58
+Let's get crazy:
  59
+
  60
+1.  This is a list item with two paragraphs. Lorem ipsum dolor
  61
+    sit amet, consectetuer adipiscing elit. Aliquam hendrerit
  62
+    mi posuere lectus.
  63
+
  64
+    Vestibulum enim wisi, viverra nec, fringilla in, laoreet
  65
+    vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
  66
+    sit amet velit.
  67
+
  68
+2.  Suspendisse id sem consectetuer libero luctus adipiscing.
  69
+
  70
+What about some code **in** a list? That's insane, right?
  71
+
  72
+1. In Ruby you can map like this:
  73
+
  74
+        ['a', 'b'].map { |x| x.uppercase }
  75
+
  76
+2. In Rails, you can do a shortcut:
  77
+
  78
+        ['a', 'b'].map(&:uppercase)
  79
+
  80
+Some people seem to like definition lists
  81
+
  82
+&lt;dl&gt;
  83
+  &lt;dt&gt;Lower cost&lt;/dt&gt;
  84
+  &lt;dd&gt;The new version of this product costs significantly less than the previous one!&lt;/dd&gt;
  85
+  &lt;dt&gt;Easier to use&lt;/dt&gt;
  86
+  &lt;dd&gt;We've changed the product so that it's much easier to use!&lt;/dd&gt;
  87
+&lt;/dl&gt;
  88
+
  89
+I am a robot
  90
+------------
  91
+
  92
+Maybe you want to print `robot` to the console 1000 times. Why not?
  93
+
  94
+    def robot_invasion
  95
+      puts("robot " * 1000)
  96
+    end
  97
+
  98
+You see, that was formatted as code because it's been indented by four spaces.
  99
+
  100
+How about we throw some angle braces and ampersands in there?
  101
+
  102
+    &lt;div class="footer"&gt;
  103
+        &amp;copy; 2004 Foo Corporation
  104
+    &lt;/div&gt;
  105
+
  106
+Set in stone
  107
+------------
  108
+
  109
+Preformatted blocks are useful for ASCII art:
  110
+
  111
+&lt;pre&gt;
  112
+             ,-. 
  113
+    ,     ,-.   ,-. 
  114
+   / \   (   )-(   ) 
  115
+   \ |  ,.&gt;-(   )-&lt; 
  116
+    \|,' (   )-(   ) 
  117
+     Y ___`-'   `-' 
  118
+     |/__/   `-' 
  119
+     | 
  120
+     | 
  121
+     |    -hrr- 
  122
+  ___|_____________ 
  123
+&lt;/pre&gt;
  124
+
  125
+Playing the blame game
  126
+----------------------
  127
+
  128
+If you need to blame someone, the best way to do so is by quoting them:
  129
+
  130
+&gt; I, at any rate, am convinced that He does not throw dice.
  131
+
  132
+Or perhaps someone a little less eloquent:
  133
+
  134
+&gt; I wish you'd have given me this written question ahead of time so I
  135
+&gt; could plan for it... I'm sure something will pop into my head here in
  136
+&gt; the midst of this press conference, with all the pressure of trying to
  137
+&gt; come up with answer, but it hadn't yet...
  138
+&gt;
  139
+&gt; I don't want to sound like
  140
+&gt; I have made no mistakes. I'm confident I have. I just haven't - you
  141
+&gt; just put me under the spot here, and maybe I'm not as quick on my feet
  142
+&gt; as I should be in coming up with one.
  143
+
  144
+Table for two
  145
+-------------
  146
+
  147
+&lt;table&gt;
  148
+  &lt;tr&gt;
  149
+    &lt;th&gt;ID&lt;/th&gt;&lt;th&gt;Name&lt;/th&gt;&lt;th&gt;Rank&lt;/th&gt;
  150
+  &lt;/tr&gt;
  151
+  &lt;tr&gt;
  152
+    &lt;td&gt;1&lt;/td&gt;&lt;td&gt;Tom Preston-Werner&lt;/td&gt;&lt;td&gt;Awesome&lt;/td&gt;
  153
+  &lt;/tr&gt;
  154
+  &lt;tr&gt;
  155
+    &lt;td&gt;2&lt;/td&gt;&lt;td&gt;Albert Einstein&lt;/td&gt;&lt;td&gt;Nearly as awesome&lt;/td&gt;
  156
+  &lt;/tr&gt;
  157
+&lt;/table&gt;
  158
+
  159
+Crazy linking action
  160
+--------------------
  161
+
  162
+I get 10 times more traffic from [Google] [1] than from
  163
+[Yahoo] [2] or [MSN] [3].
  164
+
  165
+  [1]: http://google.com/        "Google"
  166
+  [2]: http://search.yahoo.com/  "Yahoo Search"
  167
+  [3]: http://search.msn.com/    "MSN Search"</pre>
  168
+</body>
  169
+</html>
2  sample_content.gfm → _site/sample_content.md
Source Rendered
... ...
@@ -1,7 +1,7 @@
1 1
 GitHub Flavored Markdown
2 2
 ================================
3 3
 
4  
-*View the [source of this content]().*
  4
+*View the [source of this content](http://tom.preston-werner.com/github-flavored-markdown/sample_content.html).*
5 5
 
6 6
 Let's get the whole "linebreak" thing out of the way. The next paragraph contains two phrases separated by a single newline character:
7 7
 
4  _site/stylesheets/screen.css
... ...
@@ -1,7 +1,7 @@
1 1
 .site {
2  
-  width: 60em;
  2
+  width: 45em;
3 3
 }
4 4
 
5 5
 #content.site {
6  
-  width: 59em;
  6
+  width: 44em;
7 7
 }
27  index.md
Source Rendered
@@ -13,7 +13,7 @@ If you're not already familiar with Markdown, you should spend 15 minutes and go
13 13
 
14 14
 If you prefer to learn by example, see the following source and result:
15 15
 
16  
-* [Source](http://tom.preston-werner.com/github-flavored-markdown/sample_content.gfm)
  16
+* [Source](sample_content.html)
17 17
 * [Result](http://github.com/mojombo/github-flavored-markdown/issues/#issue/1)
18 18
 
19 19
 Differences from traditional Markdown
@@ -35,7 +35,7 @@ Violets are blue
35 35
 
36 36
 ### Multiple underscores in words
37 37
 
38  
-It is not reasonable to italicize just _part_ of a word, especially when you're dealing with code and names often appear with multiple underscores. Therefor, GFM ignores multiple underscore in words.
  38
+It is not reasonable to italicize just _part_ of a word, especially when you're dealing with code and names often appear with multiple underscores. Therefore, GFM ignores multiple underscores in words.
39 39
 
40 40
     perform_complicated_task
41 41
     do_this_and_do_that_and_another_thing
@@ -50,9 +50,20 @@ A bit of the GitHub spice
50 50
 
51 51
 In addition to the changes in the previous section, certain references are auto-linked:
52 52
 
53  
-* SHA: be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
54  
-* User@SHA ref: mojombo@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
55  
-* User/Project@SHA: mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
56  
-* \#Num: #1
57  
-* User/#Num: mojombo#1
58  
-* User/Project#Num: mojombo/god#1
  53
+    * SHA: be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
  54
+    * User@SHA ref: mojombo@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
  55
+    * User/Project@SHA: mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
  56
+    * \#Num: #1
  57
+    * User/#Num: mojombo#1
  58
+    * User/Project#Num: mojombo/god#1
  59
+
  60
+becomes
  61
+
  62
+<ul>
  63
+<li>SHA: <a href="/mojombo/github-flavored-markdown/commit/be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2">be6a8cc</a></li>
  64
+<li>User@SHA ref: <a href="/mojombo/github-flavored-markdown/commit/be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2">mojombo@be6a8cc</a></li>
  65
+<li>User/Project@SHA: <a href="/mojombo/god/commit/be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2">mojombo/god@be6a8cc</a></li>
  66
+<li>#Num: <a href="/mojombo/github-flavored-markdown/issues/#issue/1" class="internal">#1</a></li>
  67
+<li>User/#Num: <a href="/mojombo/github-flavored-markdown/issues/#issue/1">mojombo#1</a></li>
  68
+<li>User/Project#Num: <a href="/mojombo/god/issues/#issue/1">mojombo/god#1</a></li>
  69
+</ul>
169  sample_content.html
... ...
@@ -0,0 +1,169 @@
  1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3
+
  4
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  5
+<head>
  6
+  <title>Example Source</title>
  7
+</head>
  8
+<body>
  9
+<pre>GitHub Flavored Markdown
  10
+================================
  11
+
  12
+*View the [source of this content](http://tom.preston-werner.com/github-flavored-markdown/sample_content.html).*
  13
+
  14
+Let's get the whole "linebreak" thing out of the way. The next paragraph contains two phrases separated by a single newline character:
  15
+
  16
+Roses are red
  17
+Violets are blue
  18
+
  19
+The next paragraph has the same phrases, but now they are separated by two spaces and a newline character:
  20
+
  21
+Roses are red  
  22
+Violets are blue
  23
+
  24
+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.
  25
+
  26
+A bit of the GitHub spice
  27
+-------------------------
  28
+
  29
+In addition to the changes in the previous section, certain references are auto-linked:
  30
+
  31
+* SHA: be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
  32
+* User@SHA ref: mojombo@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
  33
+* User/Project@SHA: mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
  34
+* \#Num: #1
  35
+* User/#Num: mojombo#1
  36
+* User/Project#Num: mojombo/god#1
  37
+
  38
+These are dangerous goodies though, and we need to make sure email addresses don't get mangled:
  39
+
  40
+My email addy is tom@github.com.
  41
+
  42
+Math is hard, let's go shopping
  43
+-------------------------------
  44
+
  45
+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.
  46
+
  47
+Triangles man! a^2 + b^2 = c^2
  48
+
  49
+We all like making lists
  50
+------------------------
  51
+
  52
+The above header should be an H2 tag. Now, for a list of fruits:
  53
+
  54
+* Red Apples
  55
+* Purple Grapes
  56
+* Green Kiwifruits
  57
+
  58
+Let's get crazy:
  59
+
  60
+1.  This is a list item with two paragraphs. Lorem ipsum dolor
  61
+    sit amet, consectetuer adipiscing elit. Aliquam hendrerit
  62
+    mi posuere lectus.
  63
+
  64
+    Vestibulum enim wisi, viverra nec, fringilla in, laoreet
  65
+    vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
  66
+    sit amet velit.
  67
+
  68
+2.  Suspendisse id sem consectetuer libero luctus adipiscing.
  69
+
  70
+What about some code **in** a list? That's insane, right?
  71
+
  72
+1. In Ruby you can map like this:
  73
+
  74
+        ['a', 'b'].map { |x| x.uppercase }
  75
+
  76
+2. In Rails, you can do a shortcut:
  77
+
  78
+        ['a', 'b'].map(&:uppercase)
  79
+
  80
+Some people seem to like definition lists
  81
+
  82
+&lt;dl&gt;
  83
+  &lt;dt&gt;Lower cost&lt;/dt&gt;
  84
+  &lt;dd&gt;The new version of this product costs significantly less than the previous one!&lt;/dd&gt;
  85
+  &lt;dt&gt;Easier to use&lt;/dt&gt;
  86
+  &lt;dd&gt;We've changed the product so that it's much easier to use!&lt;/dd&gt;
  87
+&lt;/dl&gt;
  88
+
  89
+I am a robot
  90
+------------
  91
+
  92
+Maybe you want to print `robot` to the console 1000 times. Why not?
  93
+
  94
+    def robot_invasion
  95
+      puts("robot " * 1000)
  96
+    end
  97
+
  98
+You see, that was formatted as code because it's been indented by four spaces.
  99
+
  100
+How about we throw some angle braces and ampersands in there?
  101
+
  102
+    &lt;div class="footer"&gt;
  103
+        &amp;copy; 2004 Foo Corporation
  104
+    &lt;/div&gt;
  105
+
  106
+Set in stone
  107
+------------
  108
+
  109
+Preformatted blocks are useful for ASCII art:
  110
+
  111
+&lt;pre&gt;
  112
+             ,-. 
  113
+    ,     ,-.   ,-. 
  114
+   / \   (   )-(   ) 
  115
+   \ |  ,.&gt;-(   )-&lt; 
  116
+    \|,' (   )-(   ) 
  117
+     Y ___`-'   `-' 
  118
+     |/__/   `-' 
  119
+     | 
  120
+     | 
  121
+     |    -hrr- 
  122
+  ___|_____________ 
  123
+&lt;/pre&gt;
  124
+
  125
+Playing the blame game
  126
+----------------------
  127
+
  128
+If you need to blame someone, the best way to do so is by quoting them:
  129
+
  130
+&gt; I, at any rate, am convinced that He does not throw dice.
  131
+
  132
+Or perhaps someone a little less eloquent:
  133
+
  134
+&gt; I wish you'd have given me this written question ahead of time so I
  135
+&gt; could plan for it... I'm sure something will pop into my head here in
  136
+&gt; the midst of this press conference, with all the pressure of trying to
  137
+&gt; come up with answer, but it hadn't yet...
  138
+&gt;
  139
+&gt; I don't want to sound like
  140
+&gt; I have made no mistakes. I'm confident I have. I just haven't - you
  141
+&gt; just put me under the spot here, and maybe I'm not as quick on my feet
  142
+&gt; as I should be in coming up with one.
  143
+
  144
+Table for two
  145
+-------------
  146
+
  147
+&lt;table&gt;
  148
+  &lt;tr&gt;
  149
+    &lt;th&gt;ID&lt;/th&gt;&lt;th&gt;Name&lt;/th&gt;&lt;th&gt;Rank&lt;/th&gt;
  150
+  &lt;/tr&gt;
  151
+  &lt;tr&gt;
  152
+    &lt;td&gt;1&lt;/td&gt;&lt;td&gt;Tom Preston-Werner&lt;/td&gt;&lt;td&gt;Awesome&lt;/td&gt;
  153
+  &lt;/tr&gt;
  154
+  &lt;tr&gt;
  155
+    &lt;td&gt;2&lt;/td&gt;&lt;td&gt;Albert Einstein&lt;/td&gt;&lt;td&gt;Nearly as awesome&lt;/td&gt;
  156
+  &lt;/tr&gt;
  157
+&lt;/table&gt;
  158
+
  159
+Crazy linking action
  160
+--------------------
  161
+
  162
+I get 10 times more traffic from [Google] [1] than from
  163
+[Yahoo] [2] or [MSN] [3].
  164
+
  165
+  [1]: http://google.com/        "Google"
  166
+  [2]: http://search.yahoo.com/  "Yahoo Search"
  167
+  [3]: http://search.msn.com/    "MSN Search"</pre>
  168
+</body>
  169
+</html>
4  stylesheets/screen.css
... ...
@@ -1,7 +1,7 @@
1 1
 .site {
2  
-  width: 60em;
  2
+  width: 45em;
3 3
 }
4 4
 
5 5
 #content.site {
6  
-  width: 59em;
  6
+  width: 44em;
7 7
 }

1 note on commit 16c999e

ml3344
  • a task list item
  • list syntax required
  • normal formatting, @mentions, #1234 refs
  • incomplete
  • completed
Please sign in to comment.
Something went wrong with that request. Please try again.