aboutsummaryrefslogtreecommitdiffstats
path: root/tests2/php-markdown-cases-new
diff options
context:
space:
mode:
Diffstat (limited to 'tests2/php-markdown-cases-new')
-rw-r--r--tests2/php-markdown-cases-new/Backslash escapes.html14
-rw-r--r--tests2/php-markdown-cases-new/Backslash escapes.txt1
-rw-r--r--tests2/php-markdown-cases-new/Code Spans.html8
-rw-r--r--tests2/php-markdown-cases-new/Code Spans.txt6
-rw-r--r--tests2/php-markdown-cases-new/Code block in a list item.html11
-rw-r--r--tests2/php-markdown-cases-new/Code block in a list item.tags1
-rw-r--r--tests2/php-markdown-cases-new/Code block in a list item.txt8
-rw-r--r--tests2/php-markdown-cases-new/Email auto links.html5
-rw-r--r--tests2/php-markdown-cases-new/Email auto links.txt3
-rw-r--r--tests2/php-markdown-cases-new/Emphasis.html160
-rw-r--r--tests2/php-markdown-cases-new/Emphasis.tags1
-rw-r--r--tests2/php-markdown-cases-new/Emphasis.txt69
-rw-r--r--tests2/php-markdown-cases-new/Headers.html48
-rw-r--r--tests2/php-markdown-cases-new/Headers.txt9
-rw-r--r--tests2/php-markdown-cases-new/Images (Untitled).html8
-rw-r--r--tests2/php-markdown-cases-new/Images (Untitled).txt7
-rw-r--r--tests2/php-markdown-cases-new/Inline HTML (Simple).html17
-rw-r--r--tests2/php-markdown-cases-new/Inline HTML (Simple).tags1
-rw-r--r--tests2/php-markdown-cases-new/Inline HTML (Simple).txt15
-rw-r--r--tests2/php-markdown-cases-new/Inline HTML (Span).html5
-rw-r--r--tests2/php-markdown-cases-new/Inline HTML (Span).tags1
-rw-r--r--tests2/php-markdown-cases-new/Inline HTML (Span).txt4
-rw-r--r--tests2/php-markdown-cases-new/Inline HTML comments.html12
-rw-r--r--tests2/php-markdown-cases-new/Inline HTML comments.txt9
-rw-r--r--tests2/php-markdown-cases-new/Ins & del.html22
-rw-r--r--tests2/php-markdown-cases-new/Ins & del.html~24
-rw-r--r--tests2/php-markdown-cases-new/Ins & del.txt17
-rw-r--r--tests2/php-markdown-cases-new/Links, inline style.html2
-rw-r--r--tests2/php-markdown-cases-new/Links, inline style.txt1
-rw-r--r--tests2/php-markdown-cases-new/MD5 Hashes.html14
-rw-r--r--tests2/php-markdown-cases-new/MD5 Hashes.txt11
-rw-r--r--tests2/php-markdown-cases-new/Nesting.html17
-rw-r--r--tests2/php-markdown-cases-new/Nesting.tags1
-rw-r--r--tests2/php-markdown-cases-new/Nesting.txt11
-rw-r--r--tests2/php-markdown-cases-new/PHP-Specific Bugs.html20
-rw-r--r--tests2/php-markdown-cases-new/PHP-Specific Bugs.txt22
-rw-r--r--tests2/php-markdown-cases-new/Parens in URL.html16
-rw-r--r--tests2/php-markdown-cases-new/Parens in URL.tags1
-rw-r--r--tests2/php-markdown-cases-new/Parens in URL.txt14
-rw-r--r--tests2/php-markdown-cases-new/Tight blocks.html28
-rw-r--r--tests2/php-markdown-cases-new/Tight blocks.txt1
41 files changed, 645 insertions, 0 deletions
diff --git a/tests2/php-markdown-cases-new/Backslash escapes.html b/tests2/php-markdown-cases-new/Backslash escapes.html
new file mode 100644
index 0000000..6d65ce1
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Backslash escapes.html
@@ -0,0 +1,14 @@
+<p>Tricky combinaisons:
+</p>
+
+<p>backslash with \-- two dashes
+</p>
+
+<p>backslash with \> greater than
+</p>
+
+<p>\[test](not a link)
+</p>
+
+<p>\*no emphasis*
+</p>
diff --git a/tests2/php-markdown-cases-new/Backslash escapes.txt b/tests2/php-markdown-cases-new/Backslash escapes.txt
new file mode 100644
index 0000000..a5e769b
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Backslash escapes.txt
@@ -0,0 +1 @@
+Tricky combinaisons: backslash with \\-- two dashes backslash with \\> greater than \\\[test](not a link) \\\*no emphasis* \ No newline at end of file
diff --git a/tests2/php-markdown-cases-new/Code Spans.html b/tests2/php-markdown-cases-new/Code Spans.html
new file mode 100644
index 0000000..a5a2ddc
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Code Spans.html
@@ -0,0 +1,8 @@
+<p>From <code>&lt;!--</code> to <code>--&gt;</code>
+on two lines.
+</p>
+
+<p>From <code>&lt;!--</code>
+to <code>--&gt;</code>
+on three lines.
+</p>
diff --git a/tests2/php-markdown-cases-new/Code Spans.txt b/tests2/php-markdown-cases-new/Code Spans.txt
new file mode 100644
index 0000000..43f2bcf
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Code Spans.txt
@@ -0,0 +1,6 @@
+From `<!--` to `-->`
+on two lines.
+
+From `<!--`
+to `-->`
+on three lines.
diff --git a/tests2/php-markdown-cases-new/Code block in a list item.html b/tests2/php-markdown-cases-new/Code block in a list item.html
new file mode 100644
index 0000000..ed86f62
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Code block in a list item.html
@@ -0,0 +1,11 @@
+<ul>
+<li><p>List Item:
+</p>
+
+<pre><code>code block
+
+with a blank line
+</code></pre><p>within a list item.
+</p>
+</li>
+</ul> \ No newline at end of file
diff --git a/tests2/php-markdown-cases-new/Code block in a list item.tags b/tests2/php-markdown-cases-new/Code block in a list item.tags
new file mode 100644
index 0000000..a3d2682
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Code block in a list item.tags
@@ -0,0 +1 @@
+knownfailure eol dontcare # fails just because of trailing EOL
diff --git a/tests2/php-markdown-cases-new/Code block in a list item.txt b/tests2/php-markdown-cases-new/Code block in a list item.txt
new file mode 100644
index 0000000..3fa24c3
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Code block in a list item.txt
@@ -0,0 +1,8 @@
+
+* List Item:
+
+ code block
+
+ with a blank line
+
+ within a list item. \ No newline at end of file
diff --git a/tests2/php-markdown-cases-new/Email auto links.html b/tests2/php-markdown-cases-new/Email auto links.html
new file mode 100644
index 0000000..36fb7e7
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Email auto links.html
@@ -0,0 +1,5 @@
+<p><a href="&#109;&#x61;&#105;&#x6c;&#116;&#x6f;&#58;&#x6d;&#105;&#x63;&#104;&#x65;&#108;&#x2e;&#102;&#x6f;&#114;&#x74;&#105;&#x6e;&#64;&#x6d;&#105;&#x63;&#104;&#x65;&#108;&#x66;&#46;&#x63;&#111;&#x6d;">&#x6d;&#105;&#x63;&#104;&#x65;&#108;&#x2e;&#102;&#x6f;&#114;&#x74;&#105;&#x6e;&#64;&#x6d;&#105;&#x63;&#104;&#x65;&#108;&#x66;&#46;&#x63;&#111;&#x6d;</a>
+</p>
+
+<p>International domain names: <a href="&#x6d;&#97;&#105;&#x6c;&#x74;&#111;&#58;&#x68;&#x65;&#108;&#112;&#x40;&#x74;ū&#x64;&#x61;&#108;&#105;ņ&#46;&#108;&#x76;">&#x68;&#x65;&#108;&#112;&#x40;&#x74;ū&#x64;&#x61;&#108;&#105;ņ&#46;&#108;&#x76;</a>
+</p>
diff --git a/tests2/php-markdown-cases-new/Email auto links.txt b/tests2/php-markdown-cases-new/Email auto links.txt
new file mode 100644
index 0000000..a8af4ec
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Email auto links.txt
@@ -0,0 +1,3 @@
+<michel.fortin@michelf.com>
+
+International domain names: <help@tūdaliņ.lv> \ No newline at end of file
diff --git a/tests2/php-markdown-cases-new/Emphasis.html b/tests2/php-markdown-cases-new/Emphasis.html
new file mode 100644
index 0000000..85a532d
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Emphasis.html
@@ -0,0 +1,160 @@
+<p>Combined emphasis:
+</p>
+
+<ol>
+<li>
+<strong><em>test test</em></strong>
+</li>
+<li>
+<strong><em>test test</em></strong>
+</li>
+<li>
+<em>test <strong>test</strong></em>
+</li>
+<li>
+<strong>test <em>test</em></strong>
+</li>
+<li>
+<strong><em>test</em> test</strong>
+</li>
+<li>
+<em><strong>test</strong> test</em>
+</li>
+<li>
+<strong><em>test</em> test</strong>
+</li>
+<li>
+<strong>test <em>test</em></strong>
+</li>
+<li>
+<em>test <strong>test</strong></em>
+</li>
+<li>
+<em>test <strong>test</strong></em>
+</li>
+<li>
+<strong>test <em>test</em></strong>
+</li>
+<li>
+<strong><em>test</em> test</strong>
+</li>
+<li>
+<em><strong>test</strong> test</em>
+</li>
+<li>
+<strong><em>test</em> test</strong>
+</li>
+<li>
+<strong>test <em>test</em></strong>
+</li>
+<li>
+<em>test <strong>test</strong></em>
+</li>
+</ol>
+
+<p>Incorrect nesting:
+</p>
+
+<ol>
+<li>
+*test <strong>test* test</strong>
+</li>
+<li>
+_test <strong>test_ test</strong>
+</li>
+<li>
+**test <em>test</em>* test*
+</li>
+<li>
+__test <em>test</em>_ test_
+</li>
+<li>
+<em>test *test</em> test*
+</li>
+<li>
+<em>test _test</em> test_
+</li>
+<li>
+<strong>test <strong>test</strong> test</strong>
+</li>
+<li>
+<strong>test <strong>test</strong> test</strong>
+</li>
+</ol>
+
+<p>No emphasis:
+</p>
+
+<ol>
+<li>
+test* test *test
+</li>
+<li>
+test** test **test
+</li>
+<li>
+test_ test _test
+</li>
+<li>
+test__ test __test
+</li>
+</ol>
+
+<p>Middle-word emphasis (asterisks):
+</p>
+
+<ol>
+<li>
+<em>a</em>b
+</li>
+<li>
+a<em>b</em>
+</li>
+<li>
+a<em>b</em>c
+</li>
+<li>
+<strong>a</strong>b
+</li>
+<li>
+a<strong>b</strong>
+</li>
+<li>
+a<strong>b</strong>c
+</li>
+</ol>
+
+<p>Middle-word emphasis (underscore):
+</p>
+
+<ol>
+<li>
+<em>a</em>b
+</li>
+<li>
+a<em>b</em>
+</li>
+<li>
+a<em>b</em>c
+</li>
+<li>
+<strong>a</strong>b
+</li>
+<li>
+a<strong>b</strong>
+</li>
+<li>
+a<strong>b</strong>c
+</li>
+</ol>
+
+<p>my<em>precious</em>file.txt
+</p>
+
+<h2>Tricky Cases</h2>
+
+<p>E**. <strong>Test</strong> TestTestTest
+</p>
+
+<p>E**. <strong>Test</strong> Test Test Test
+</p>
diff --git a/tests2/php-markdown-cases-new/Emphasis.tags b/tests2/php-markdown-cases-new/Emphasis.tags
new file mode 100644
index 0000000..06cb210
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Emphasis.tags
@@ -0,0 +1 @@
+knownfailure dontcare # need a re-write based on html5lib (or something) to fix
diff --git a/tests2/php-markdown-cases-new/Emphasis.txt b/tests2/php-markdown-cases-new/Emphasis.txt
new file mode 100644
index 0000000..ec48dec
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Emphasis.txt
@@ -0,0 +1,69 @@
+Combined emphasis:
+
+1. ***test test***
+2. ___test test___
+3. *test **test***
+4. **test *test***
+5. ***test* test**
+6. ***test** test*
+7. ***test* test**
+8. **test *test***
+9. *test **test***
+10. _test __test___
+11. __test _test___
+12. ___test_ test__
+13. ___test__ test_
+14. ___test_ test__
+15. __test _test___
+16. _test __test___
+
+
+Incorrect nesting:
+
+1. *test **test* test**
+2. _test __test_ test__
+3. **test *test** test*
+4. __test _test__ test_
+5. *test *test* test*
+6. _test _test_ test_
+7. **test **test** test**
+8. __test __test__ test__
+
+
+
+No emphasis:
+
+1. test* test *test
+2. test** test **test
+3. test_ test _test
+4. test__ test __test
+
+
+
+Middle-word emphasis (asterisks):
+
+1. *a*b
+2. a*b*
+3. a*b*c
+4. **a**b
+5. a**b**
+6. a**b**c
+
+
+Middle-word emphasis (underscore):
+
+1. _a_b
+2. a_b_
+3. a_b_c
+4. __a__b
+5. a__b__
+6. a__b__c
+
+my_precious_file.txt
+
+
+## Tricky Cases
+
+E**. **Test** TestTestTest
+
+E**. **Test** Test Test Test
diff --git a/tests2/php-markdown-cases-new/Headers.html b/tests2/php-markdown-cases-new/Headers.html
new file mode 100644
index 0000000..84628d3
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Headers.html
@@ -0,0 +1,48 @@
+<h1>Header</h1>
+
+<h2>Header</h2>
+
+<h3>Header</h3>
+
+<hr />
+
+<h1>Header</h1>
+
+<p>Paragraph
+</p>
+
+<h2>Header</h2>
+
+<p>Paragraph
+</p>
+
+<h3>Header</h3>
+
+<p>Paragraph
+</p>
+
+<hr />
+
+<p>Paragraph
+</p>
+
+<h1>Header</h1>
+
+<p>Paragraph
+</p>
+
+<p>Paragraph
+</p>
+
+<h2>Header</h2>
+
+<p>Paragraph
+</p>
+
+<p>Paragraph
+</p>
+
+<h3>Header</h3>
+
+<p>Paragraph
+</p>
diff --git a/tests2/php-markdown-cases-new/Headers.txt b/tests2/php-markdown-cases-new/Headers.txt
new file mode 100644
index 0000000..3a39174
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Headers.txt
@@ -0,0 +1,9 @@
+Header ====== Header ------ ### Header
+
+ - - -
+
+Header ====== Paragraph Header ------ Paragraph ### Header Paragraph
+
+ - - -
+
+Paragraph Header ====== Paragraph Paragraph Header ------ Paragraph Paragraph ### Header Paragraph \ No newline at end of file
diff --git a/tests2/php-markdown-cases-new/Images (Untitled).html b/tests2/php-markdown-cases-new/Images (Untitled).html
new file mode 100644
index 0000000..6ca4df1
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Images (Untitled).html
@@ -0,0 +1,8 @@
+<p><img src="/url/" alt="alt text"/>
+</p>
+
+<p><img src="/url/" alt="alt text"/>
+</p>
+
+<p><img src="/url/" alt="alt text"/>
+</p>
diff --git a/tests2/php-markdown-cases-new/Images (Untitled).txt b/tests2/php-markdown-cases-new/Images (Untitled).txt
new file mode 100644
index 0000000..cb481de
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Images (Untitled).txt
@@ -0,0 +1,7 @@
+![alt text](/url/)
+
+![alt text](</url/>)
+
+![alt text][foo]
+
+ [foo]: /url/ \ No newline at end of file
diff --git a/tests2/php-markdown-cases-new/Inline HTML (Simple).html b/tests2/php-markdown-cases-new/Inline HTML (Simple).html
new file mode 100644
index 0000000..2bb568d
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Inline HTML (Simple).html
@@ -0,0 +1,17 @@
+<p>With some attributes:
+</p>
+
+<div id="test">
+ foo
+</div>
+
+<div id="test"
+ class="nono">
+ foo
+</div>
+
+<p>Hr's:
+</p>
+
+<hr class="foo"
+ id="bar" > \ No newline at end of file
diff --git a/tests2/php-markdown-cases-new/Inline HTML (Simple).tags b/tests2/php-markdown-cases-new/Inline HTML (Simple).tags
new file mode 100644
index 0000000..a3d2682
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Inline HTML (Simple).tags
@@ -0,0 +1 @@
+knownfailure eol dontcare # fails just because of trailing EOL
diff --git a/tests2/php-markdown-cases-new/Inline HTML (Simple).txt b/tests2/php-markdown-cases-new/Inline HTML (Simple).txt
new file mode 100644
index 0000000..9177105
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Inline HTML (Simple).txt
@@ -0,0 +1,15 @@
+With some attributes:
+
+<div id="test">
+ foo
+</div>
+
+<div id="test"
+ class="nono">
+ foo
+</div>
+
+Hr's:
+
+<hr class="foo"
+ id="bar" >
diff --git a/tests2/php-markdown-cases-new/Inline HTML (Span).html b/tests2/php-markdown-cases-new/Inline HTML (Span).html
new file mode 100644
index 0000000..beddfe2
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Inline HTML (Span).html
@@ -0,0 +1,5 @@
+<p><abbr title="` **Attribute Content Is Not A Code Span** `">ACINACS</abbr>
+</p>
+
+<p><abbr title="`first backtick!">SB</abbr>
+<abbr title="`second backtick!">SB</abbr></p> \ No newline at end of file
diff --git a/tests2/php-markdown-cases-new/Inline HTML (Span).tags b/tests2/php-markdown-cases-new/Inline HTML (Span).tags
new file mode 100644
index 0000000..06cb210
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Inline HTML (Span).tags
@@ -0,0 +1 @@
+knownfailure dontcare # need a re-write based on html5lib (or something) to fix
diff --git a/tests2/php-markdown-cases-new/Inline HTML (Span).txt b/tests2/php-markdown-cases-new/Inline HTML (Span).txt
new file mode 100644
index 0000000..19028bb
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Inline HTML (Span).txt
@@ -0,0 +1,4 @@
+<abbr title="` **Attribute Content Is Not A Code Span** `">ACINACS</abbr>
+
+<abbr title="`first backtick!">SB</abbr>
+<abbr title="`second backtick!">SB</abbr> \ No newline at end of file
diff --git a/tests2/php-markdown-cases-new/Inline HTML comments.html b/tests2/php-markdown-cases-new/Inline HTML comments.html
new file mode 100644
index 0000000..877bcfb
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Inline HTML comments.html
@@ -0,0 +1,12 @@
+<p>Paragraph one.
+</p>
+
+<!-- double--dash (invalid SGML comment) -->
+
+<p>Paragraph two.
+</p>
+
+<!-- enclosed tag </div> -->
+
+<p>The end.
+</p>
diff --git a/tests2/php-markdown-cases-new/Inline HTML comments.txt b/tests2/php-markdown-cases-new/Inline HTML comments.txt
new file mode 100644
index 0000000..d57d00a
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Inline HTML comments.txt
@@ -0,0 +1,9 @@
+Paragraph one.
+
+<!-- double--dash (invalid SGML comment) -->
+
+Paragraph two.
+
+<!-- enclosed tag </div> -->
+
+The end.
diff --git a/tests2/php-markdown-cases-new/Ins & del.html b/tests2/php-markdown-cases-new/Ins & del.html
new file mode 100644
index 0000000..f5997a7
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Ins & del.html
@@ -0,0 +1,22 @@
+<p>Here is a block tag ins:
+</p>
+
+<ins>
+<p>Some text</p>
+</ins>
+
+<ins>And here it is inside a paragraph.</ins>
+
+
+<p>And here it is <ins>in the middle of</ins> a paragraph.
+</p>
+
+<del>
+<p>Some text</p>
+</del>
+
+<del>And here is ins as a paragraph.</del>
+
+
+<p>And here it is <del>in the middle of</del> a paragraph.
+</p>
diff --git a/tests2/php-markdown-cases-new/Ins & del.html~ b/tests2/php-markdown-cases-new/Ins & del.html~
new file mode 100644
index 0000000..82bfb2b
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Ins & del.html~
@@ -0,0 +1,24 @@
+<p>Here is a block tag ins:
+</p>
+
+<ins>
+<p>Some text
+</p>
+</ins>
+
+<ins>And here it is inside a paragraph.</ins>
+
+
+<p>And here it is <ins>in the middle of</ins> a paragraph.
+</p>
+
+<del>
+<p>Some text
+</p>
+</del>
+
+<del>And here is ins as a paragraph.</del>
+
+
+<p>And here it is <del>in the middle of</del> a paragraph.
+</p>
diff --git a/tests2/php-markdown-cases-new/Ins & del.txt b/tests2/php-markdown-cases-new/Ins & del.txt
new file mode 100644
index 0000000..2d54c66
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Ins & del.txt
@@ -0,0 +1,17 @@
+Here is a block tag ins:
+
+<ins>
+<p>Some text</p>
+</ins>
+
+<ins>And here it is inside a paragraph.</ins>
+
+And here it is <ins>in the middle of</ins> a paragraph.
+
+<del>
+<p>Some text</p>
+</del>
+
+<del>And here is ins as a paragraph.</del>
+
+And here it is <del>in the middle of</del> a paragraph.
diff --git a/tests2/php-markdown-cases-new/Links, inline style.html b/tests2/php-markdown-cases-new/Links, inline style.html
new file mode 100644
index 0000000..195cedf
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Links, inline style.html
@@ -0,0 +1,2 @@
+<p><a href="?}]*+|&amp;)">silly URL w/ angle brackets</a>.
+</p>
diff --git a/tests2/php-markdown-cases-new/Links, inline style.txt b/tests2/php-markdown-cases-new/Links, inline style.txt
new file mode 100644
index 0000000..600a044
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Links, inline style.txt
@@ -0,0 +1 @@
+[silly URL w/ angle brackets](<?}]*+|&)>).
diff --git a/tests2/php-markdown-cases-new/MD5 Hashes.html b/tests2/php-markdown-cases-new/MD5 Hashes.html
new file mode 100644
index 0000000..91283e0
--- /dev/null
+++ b/tests2/php-markdown-cases-new/MD5 Hashes.html
@@ -0,0 +1,14 @@
+<h1>Character Escapes</h1>
+
+<p>The MD5 value for <code>+</code> is "26b17225b626fb9238849fd60eabdf60".
+</p>
+
+<h1>HTML Blocks</h1>
+
+<p>test</p>
+
+<p>The MD5 value for <code>&lt;p&gt;test&lt;/p&gt;</code> is:
+</p>
+
+<p>6205333b793f34273d75379350b36826
+</p>
diff --git a/tests2/php-markdown-cases-new/MD5 Hashes.txt b/tests2/php-markdown-cases-new/MD5 Hashes.txt
new file mode 100644
index 0000000..7e03221
--- /dev/null
+++ b/tests2/php-markdown-cases-new/MD5 Hashes.txt
@@ -0,0 +1,11 @@
+# Character Escapes
+
+The MD5 value for `+` is "26b17225b626fb9238849fd60eabdf60".
+
+# HTML Blocks
+
+<p>test</p>
+
+The MD5 value for `<p>test</p>` is:
+
+6205333b793f34273d75379350b36826 \ No newline at end of file
diff --git a/tests2/php-markdown-cases-new/Nesting.html b/tests2/php-markdown-cases-new/Nesting.html
new file mode 100644
index 0000000..be47e21
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Nesting.html
@@ -0,0 +1,17 @@
+<p>Valid nesting:
+</p>
+
+<p><strong><a href="url">Link</a></strong>
+</p>
+
+<p><a href="url"><strong>Link</strong></a>
+</p>
+
+<p><strong><a href="url"><strong>Link</strong></a></strong>
+</p>
+
+<p>Invalid nesting:
+</p>
+
+<p><a href="url">[Link](url)</a>
+</p>
diff --git a/tests2/php-markdown-cases-new/Nesting.tags b/tests2/php-markdown-cases-new/Nesting.tags
new file mode 100644
index 0000000..cb77ed3
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Nesting.tags
@@ -0,0 +1 @@
+knownfailure dontcare
diff --git a/tests2/php-markdown-cases-new/Nesting.txt b/tests2/php-markdown-cases-new/Nesting.txt
new file mode 100644
index 0000000..791538c
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Nesting.txt
@@ -0,0 +1,11 @@
+Valid nesting:
+
+**[Link](url)**
+
+[**Link**](url)
+
+**[**Link**](url)**
+
+Invalid nesting:
+
+[[Link](url)](url) \ No newline at end of file
diff --git a/tests2/php-markdown-cases-new/PHP-Specific Bugs.html b/tests2/php-markdown-cases-new/PHP-Specific Bugs.html
new file mode 100644
index 0000000..19943dd
--- /dev/null
+++ b/tests2/php-markdown-cases-new/PHP-Specific Bugs.html
@@ -0,0 +1,20 @@
+<p>This tests for a bug where quotes escaped by PHP when using
+<code>preg_replace</code> with the <code>/e</code> modifier must be correctly unescaped
+(hence the <code>_UnslashQuotes</code> function found only in PHP Markdown).
+</p>
+
+<p>Headers below should appear exactly as they are typed (no backslash
+added or removed).
+</p>
+
+<h1>Header "quoted\" again \""</h1>
+
+<h2>Header "quoted\" again \""</h2>
+
+<h3>Header "quoted\" again \""</h3>
+
+<p>Test with tabs for <code>_Detab</code>:
+</p>
+
+<pre><code>Code 'block' with some "tabs" and "quotes"
+</code></pre>
diff --git a/tests2/php-markdown-cases-new/PHP-Specific Bugs.txt b/tests2/php-markdown-cases-new/PHP-Specific Bugs.txt
new file mode 100644
index 0000000..246b60d
--- /dev/null
+++ b/tests2/php-markdown-cases-new/PHP-Specific Bugs.txt
@@ -0,0 +1,22 @@
+This tests for a bug where quotes escaped by PHP when using
+`preg_replace` with the `/e` modifier must be correctly unescaped
+(hence the `_UnslashQuotes` function found only in PHP Markdown).
+
+
+
+Headers below should appear exactly as they are typed (no backslash
+added or removed).
+
+Header "quoted\" again \\""
+===========================
+
+Header "quoted\" again \\""
+---------------------------
+
+### Header "quoted\" again \\"" ###
+
+
+
+Test with tabs for `_Detab`:
+
+ Code 'block' with some "tabs" and "quotes"
diff --git a/tests2/php-markdown-cases-new/Parens in URL.html b/tests2/php-markdown-cases-new/Parens in URL.html
new file mode 100644
index 0000000..24254ff
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Parens in URL.html
@@ -0,0 +1,16 @@
+<p><a href="/url(test)" title="title">Inline link 1 with parens</a>.
+</p>
+
+<p><a href="/url(test)" title="title">Inline link 2 with parens</a>.
+</p>
+
+<p><a href="/url(test)" title="title">Inline link 3 with non-escaped parens</a>.
+</p>
+
+<p><a href="/url(test)" title="title">Inline link 4 with non-escaped parens</a>.
+</p>
+
+<p><a href="/url(test)" title="title">Reference link 1 with parens</a>.
+</p>
+
+<p><a href="/url(test)" title="title">Reference link 2 with parens</a>.</p> \ No newline at end of file
diff --git a/tests2/php-markdown-cases-new/Parens in URL.tags b/tests2/php-markdown-cases-new/Parens in URL.tags
new file mode 100644
index 0000000..918b7e8
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Parens in URL.tags
@@ -0,0 +1 @@
+dontcare knownfailure
diff --git a/tests2/php-markdown-cases-new/Parens in URL.txt b/tests2/php-markdown-cases-new/Parens in URL.txt
new file mode 100644
index 0000000..bb7be4f
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Parens in URL.txt
@@ -0,0 +1,14 @@
+[Inline link 1 with parens](/url\(test\) "title").
+
+[Inline link 2 with parens](</url\(test\)> "title").
+
+[Inline link 3 with non-escaped parens](/url(test) "title").
+
+[Inline link 4 with non-escaped parens](</url(test)> "title").
+
+[Reference link 1 with parens][1].
+
+[Reference link 2 with parens][2].
+
+ [1]: /url(test) "title"
+ [2]: </url(test)> "title"
diff --git a/tests2/php-markdown-cases-new/Tight blocks.html b/tests2/php-markdown-cases-new/Tight blocks.html
new file mode 100644
index 0000000..3d9342d
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Tight blocks.html
@@ -0,0 +1,28 @@
+<p>Paragraph and no space:
+* ciao
+</p>
+
+<p>Paragraph and 1 space:
+ * ciao
+</p>
+
+<p>Paragraph and 3 spaces:
+ * ciao
+</p>
+
+<p>Paragraph and 4 spaces:
+ * ciao
+</p>
+
+<p>Paragraph before header:
+</p>
+
+<h1>Header</h1>
+
+<p>Paragraph before blockquote:
+</p>
+
+<blockquote>
+ <p>Some quote.
+</p>
+</blockquote>
diff --git a/tests2/php-markdown-cases-new/Tight blocks.txt b/tests2/php-markdown-cases-new/Tight blocks.txt
new file mode 100644
index 0000000..ae4cdcb
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Tight blocks.txt
@@ -0,0 +1 @@
+Paragraph and no space: * ciao Paragraph and 1 space: * ciao Paragraph and 3 spaces: * ciao Paragraph and 4 spaces: * ciao Paragraph before header: #Header Paragraph before blockquote: >Some quote. \ No newline at end of file