Permalink
Browse files

Initial import.

  • Loading branch information...
0 parents commit 2fa9635272974d3f5779c561b4f958fa868700ed @michelf committed Sep 25, 2007
Showing with 6,481 additions and 0 deletions.
  1. +339 −0 License.text
  2. +21 −0 Markdown.mdtest/Amps and angle encoding.text
  3. +17 −0 Markdown.mdtest/Amps and angle encoding.xhtml
  4. +13 −0 Markdown.mdtest/Auto links.text
  5. +18 −0 Markdown.mdtest/Auto links.xhtml
  6. +120 −0 Markdown.mdtest/Backslash escapes.text
  7. +118 −0 Markdown.mdtest/Backslash escapes.xhtml
  8. +11 −0 Markdown.mdtest/Blockquotes with code blocks.text
  9. +15 −0 Markdown.mdtest/Blockquotes with code blocks.xhtml
  10. +14 −0 Markdown.mdtest/Code Blocks.text
  11. +18 −0 Markdown.mdtest/Code Blocks.xhtml
  12. +5 −0 Markdown.mdtest/Code Spans.text
  13. +5 −0 Markdown.mdtest/Code Spans.xhtml
  14. +8 −0 Markdown.mdtest/Hard-wrapped paragraphs with list-like lines.text
  15. +8 −0 Markdown.mdtest/Hard-wrapped paragraphs with list-like lines.xhtml
  16. +67 −0 Markdown.mdtest/Horizontal rules.text
  17. +71 −0 Markdown.mdtest/Horizontal rules.xhtml
  18. +26 −0 Markdown.mdtest/Images.text
  19. +21 −0 Markdown.mdtest/Images.xhtml
  20. +30 −0 Markdown.mdtest/Inline HTML (Advanced).text
  21. +30 −0 Markdown.mdtest/Inline HTML (Advanced).xhtml
  22. +72 −0 Markdown.mdtest/Inline HTML (Simple).html
  23. +69 −0 Markdown.mdtest/Inline HTML (Simple).text
  24. +13 −0 Markdown.mdtest/Inline HTML comments.html
  25. +13 −0 Markdown.mdtest/Inline HTML comments.text
  26. +24 −0 Markdown.mdtest/Links, inline style.text
  27. +23 −0 Markdown.mdtest/Links, inline style.xhtml
  28. +71 −0 Markdown.mdtest/Links, reference style.text
  29. +52 −0 Markdown.mdtest/Links, reference style.xhtml
  30. +20 −0 Markdown.mdtest/Links, shortcut references.text
  31. +9 −0 Markdown.mdtest/Links, shortcut references.xhtml
  32. +7 −0 Markdown.mdtest/Literal quotes in titles.text
  33. +3 −0 Markdown.mdtest/Literal quotes in titles.xhtml
  34. +306 −0 Markdown.mdtest/Markdown Documentation - Basics.text
  35. +314 −0 Markdown.mdtest/Markdown Documentation - Basics.xhtml
  36. +888 −0 Markdown.mdtest/Markdown Documentation - Syntax.text
  37. +942 −0 Markdown.mdtest/Markdown Documentation - Syntax.xhtml
  38. +5 −0 Markdown.mdtest/Nested blockquotes.text
  39. +9 −0 Markdown.mdtest/Nested blockquotes.xhtml
  40. +131 −0 Markdown.mdtest/Ordered and unordered lists.text
  41. +148 −0 Markdown.mdtest/Ordered and unordered lists.xhtml
  42. +7 −0 Markdown.mdtest/Strong and em together.text
  43. +7 −0 Markdown.mdtest/Strong and em together.xhtml
  44. +21 −0 Markdown.mdtest/Tabs.text
  45. +25 −0 Markdown.mdtest/Tabs.xhtml
  46. +5 −0 Markdown.mdtest/Tidyness.text
  47. +8 −0 Markdown.mdtest/Tidyness.xhtml
  48. +25 −0 PHP Markdown Extra.mdtest/Abbr.text
  49. +11 −0 PHP Markdown Extra.mdtest/Abbr.xhtml
  50. +106 −0 PHP Markdown Extra.mdtest/Definition Lists.text
  51. +142 −0 PHP Markdown Extra.mdtest/Definition Lists.xhtml
  52. +69 −0 PHP Markdown Extra.mdtest/Emphasis.text
  53. +72 −0 PHP Markdown Extra.mdtest/Emphasis.xhtml
  54. +55 −0 PHP Markdown Extra.mdtest/Footnotes.text
  55. +83 −0 PHP Markdown Extra.mdtest/Footnotes.xhtml
  56. +104 −0 PHP Markdown Extra.mdtest/Inline HTML with Markdown content.text
  57. +125 −0 PHP Markdown Extra.mdtest/Inline HTML with Markdown content.xhtml
  58. +104 −0 PHP Markdown Extra.mdtest/Tables.text
  59. +310 −0 PHP Markdown Extra.mdtest/Tables.xhtml
  60. +1 −0 PHP Markdown.mdtest/Backslash escapes.text
  61. +1 −0 PHP Markdown.mdtest/Backslash escapes.xhtml
  62. +6 −0 PHP Markdown.mdtest/Code Spans.text
  63. +6 −0 PHP Markdown.mdtest/Code Spans.xhtml
  64. +8 −0 PHP Markdown.mdtest/Code block in a list item.text
  65. +10 −0 PHP Markdown.mdtest/Code block in a list item.xhtml
  66. +3 −0 PHP Markdown.mdtest/Email auto links.text
  67. +3 −0 PHP Markdown.mdtest/Email auto links.xhtml
  68. +69 −0 PHP Markdown.mdtest/Emphasis.text
  69. +72 −0 PHP Markdown.mdtest/Emphasis.xhtml
  70. +9 −0 PHP Markdown.mdtest/Headers.text
  71. +39 −0 PHP Markdown.mdtest/Headers.xhtml
  72. +15 −0 PHP Markdown.mdtest/Inline HTML (Simple).html
  73. +15 −0 PHP Markdown.mdtest/Inline HTML (Simple).text
  74. +4 −0 PHP Markdown.mdtest/Inline HTML (Span).text
  75. +4 −0 PHP Markdown.mdtest/Inline HTML (Span).xhtml
  76. +9 −0 PHP Markdown.mdtest/Inline HTML comments.html
  77. +9 −0 PHP Markdown.mdtest/Inline HTML comments.text
  78. +17 −0 PHP Markdown.mdtest/Ins & del.text
  79. +17 −0 PHP Markdown.mdtest/Ins & del.xhtml
  80. +1 −0 PHP Markdown.mdtest/Links, inline style.text
  81. +1 −0 PHP Markdown.mdtest/Links, inline style.xhtml
  82. +11 −0 PHP Markdown.mdtest/MD5 Hashes.text
  83. +11 −0 PHP Markdown.mdtest/MD5 Hashes.xhtml
  84. +11 −0 PHP Markdown.mdtest/Nesting.text
  85. +11 −0 PHP Markdown.mdtest/Nesting.xhtml
  86. +22 −0 PHP Markdown.mdtest/PHP-Specific Bugs.text
  87. +17 −0 PHP Markdown.mdtest/PHP-Specific Bugs.xhtml
  88. +14 −0 PHP Markdown.mdtest/Parens in URL.text
  89. +11 −0 PHP Markdown.mdtest/Parens in URL.xhtml
  90. +1 −0 PHP Markdown.mdtest/Tight blocks.text
  91. +21 −0 PHP Markdown.mdtest/Tight blocks.xhtml
  92. +106 −0 index.php
  93. +553 −0 mdtest.php
Oops, something went wrong.
@@ -0,0 +1,21 @@
+AT&T has an ampersand in their name.
+
+AT&T is another way to write it.
+
+This & that.
+
+4 < 5.
+
+6 > 5.
+
+Here's a [link] [1] with an ampersand in the URL.
+
+Here's a link with an amersand in the link text: [AT&T] [2].
+
+Here's an inline [link](/script?foo=1&bar=2).
+
+Here's an inline [link](</script?foo=1&bar=2>).
+
+
+[1]: http://example.com/?foo=1&bar=2
+[2]: http://att.com/ "AT&T"
@@ -0,0 +1,17 @@
+<p>AT&amp;T has an ampersand in their name.</p>
+
+<p>AT&amp;T is another way to write it.</p>
+
+<p>This &amp; that.</p>
+
+<p>4 &lt; 5.</p>
+
+<p>6 > 5.</p>
+
+<p>Here's a <a href="http://example.com/?foo=1&amp;bar=2">link</a> with an ampersand in the URL.</p>
+
+<p>Here's a link with an amersand in the link text: <a href="http://att.com/" title="AT&amp;T">AT&amp;T</a>.</p>
+
+<p>Here's an inline <a href="/script?foo=1&amp;bar=2">link</a>.</p>
+
+<p>Here's an inline <a href="/script?foo=1&amp;bar=2">link</a>.</p>
@@ -0,0 +1,13 @@
+Link: <http://example.com/>.
+
+With an ampersand: <http://example.com/?foo=1&bar=2>
+
+* In a list?
+* <http://example.com/>
+* It should.
+
+> Blockquoted: <http://example.com/>
+
+Auto-links should not occur here: `<http://example.com/>`
+
+ or here: <http://example.com/>
@@ -0,0 +1,18 @@
+<p>Link: <a href="http://example.com/">http://example.com/</a>.</p>
+
+<p>With an ampersand: <a href="http://example.com/?foo=1&amp;bar=2">http://example.com/?foo=1&amp;bar=2</a></p>
+
+<ul>
+<li>In a list?</li>
+<li><a href="http://example.com/">http://example.com/</a></li>
+<li>It should.</li>
+</ul>
+
+<blockquote>
+ <p>Blockquoted: <a href="http://example.com/">http://example.com/</a></p>
+</blockquote>
+
+<p>Auto-links should not occur here: <code>&lt;http://example.com/&gt;</code></p>
+
+<pre><code>or here: &lt;http://example.com/&gt;
+</code></pre>
@@ -0,0 +1,120 @@
+These should all get escaped:
+
+Backslash: \\
+
+Backtick: \`
+
+Asterisk: \*
+
+Underscore: \_
+
+Left brace: \{
+
+Right brace: \}
+
+Left bracket: \[
+
+Right bracket: \]
+
+Left paren: \(
+
+Right paren: \)
+
+Greater-than: \>
+
+Hash: \#
+
+Period: \.
+
+Bang: \!
+
+Plus: \+
+
+Minus: \-
+
+
+
+These should not, because they occur within a code block:
+
+ Backslash: \\
+
+ Backtick: \`
+
+ Asterisk: \*
+
+ Underscore: \_
+
+ Left brace: \{
+
+ Right brace: \}
+
+ Left bracket: \[
+
+ Right bracket: \]
+
+ Left paren: \(
+
+ Right paren: \)
+
+ Greater-than: \>
+
+ Hash: \#
+
+ Period: \.
+
+ Bang: \!
+
+ Plus: \+
+
+ Minus: \-
+
+
+Nor should these, which occur in code spans:
+
+Backslash: `\\`
+
+Backtick: `` \` ``
+
+Asterisk: `\*`
+
+Underscore: `\_`
+
+Left brace: `\{`
+
+Right brace: `\}`
+
+Left bracket: `\[`
+
+Right bracket: `\]`
+
+Left paren: `\(`
+
+Right paren: `\)`
+
+Greater-than: `\>`
+
+Hash: `\#`
+
+Period: `\.`
+
+Bang: `\!`
+
+Plus: `\+`
+
+Minus: `\-`
+
+
+These should get escaped, even though they're matching pairs for
+other Markdown constructs:
+
+\*asterisks\*
+
+\_underscores\_
+
+\`backticks\`
+
+This is a code span with a literal backslash-backtick sequence: `` \` ``
+
+This is a tag with unescaped backticks <span attr='`ticks`'>bar</span>.
+
+This is a tag with backslashes <span attr='\\backslashes\\'>bar</span>.
@@ -0,0 +1,118 @@
+<p>These should all get escaped:</p>
+
+<p>Backslash: \</p>
+
+<p>Backtick: `</p>
+
+<p>Asterisk: *</p>
+
+<p>Underscore: _</p>
+
+<p>Left brace: {</p>
+
+<p>Right brace: }</p>
+
+<p>Left bracket: [</p>
+
+<p>Right bracket: ]</p>
+
+<p>Left paren: (</p>
+
+<p>Right paren: )</p>
+
+<p>Greater-than: ></p>
+
+<p>Hash: #</p>
+
+<p>Period: .</p>
+
+<p>Bang: !</p>
+
+<p>Plus: +</p>
+
+<p>Minus: -</p>
+
+<p>These should not, because they occur within a code block:</p>
+
+<pre><code>Backslash: \\
+
+Backtick: \`
+
+Asterisk: \*
+
+Underscore: \_
+
+Left brace: \{
+
+Right brace: \}
+
+Left bracket: \[
+
+Right bracket: \]
+
+Left paren: \(
+
+Right paren: \)
+
+Greater-than: \&gt;
+
+Hash: \#
+
+Period: \.
+
+Bang: \!
+
+Plus: \+
+
+Minus: \-
+</code></pre>
+
+<p>Nor should these, which occur in code spans:</p>
+
+<p>Backslash: <code>\\</code></p>
+
+<p>Backtick: <code>\`</code></p>
+
+<p>Asterisk: <code>\*</code></p>
+
+<p>Underscore: <code>\_</code></p>
+
+<p>Left brace: <code>\{</code></p>
+
+<p>Right brace: <code>\}</code></p>
+
+<p>Left bracket: <code>\[</code></p>
+
+<p>Right bracket: <code>\]</code></p>
+
+<p>Left paren: <code>\(</code></p>
+
+<p>Right paren: <code>\)</code></p>
+
+<p>Greater-than: <code>\&gt;</code></p>
+
+<p>Hash: <code>\#</code></p>
+
+<p>Period: <code>\.</code></p>
+
+<p>Bang: <code>\!</code></p>
+
+<p>Plus: <code>\+</code></p>
+
+<p>Minus: <code>\-</code></p>
+
+
+<p>These should get escaped, even though they're matching pairs for
+other Markdown constructs:</p>
+
+<p>*asterisks*</p>
+
+<p>_underscores_</p>
+
+<p>`backticks`</p>
+
+<p>This is a code span with a literal backslash-backtick sequence: <code>\`</code></p>
+
+<p>This is a tag with unescaped backticks <span attr='`ticks`'>bar</span>.</p>
+
+<p>This is a tag with backslashes <span attr='\\backslashes\\'>bar</span>.</p>
@@ -0,0 +1,11 @@
+> Example:
+>
+> sub status {
+> print "working";
+> }
+>
+> Or:
+>
+> sub status {
+> return "working";
+> }
@@ -0,0 +1,15 @@
+<blockquote>
+ <p>Example:</p>
+
+<pre><code>sub status {
+ print "working";
+}
+</code></pre>
+
+ <p>Or:</p>
+
+<pre><code>sub status {
+ return "working";
+}
+</code></pre>
+</blockquote>
@@ -0,0 +1,14 @@
+ code block on the first line
+
+Regular text.
+
+ code block indented by spaces
+
+Regular text.
+
+ the lines in this block
+ all contain trailing spaces
+
+Regular Text.
+
+ code block on the last line
@@ -0,0 +1,18 @@
+<pre><code>code block on the first line
+</code></pre>
+
+<p>Regular text.</p>
+
+<pre><code>code block indented by spaces
+</code></pre>
+
+<p>Regular text.</p>
+
+<pre><code>the lines in this block
+all contain trailing spaces
+</code></pre>
+
+<p>Regular Text.</p>
+
+<pre><code>code block on the last line
+</code></pre>
@@ -0,0 +1,5 @@
+`<test a="` content of attribute `">`
+
+Fix for backticks within HTML tag: <span attr='`ticks`'>like this</span>
+
+Here's how you put `` `backticks` `` in a code span.
@@ -0,0 +1,5 @@
+<p><code>&lt;test a="</code> content of attribute <code>"&gt;</code></p>
+
+<p>Fix for backticks within HTML tag: <span attr='`ticks`'>like this</span></p>
+
+<p>Here's how you put <code>`backticks`</code> in a code span.</p>
@@ -0,0 +1,8 @@
+In Markdown 1.0.0 and earlier. Version
+8. This line turns into a list item.
+Because a hard-wrapped line in the
+middle of a paragraph looked like a
+list item.
+
+Here's one with a bullet.
+* criminey.
Oops, something went wrong.

0 comments on commit 2fa9635

Please sign in to comment.