summaryrefslogtreecommitdiff
path: root/t/docs-php-markdown-todo
diff options
context:
space:
mode:
authorbeatrice <beatrice@dangofactory.net>2026-11-22 20:01:35 +0900
committerbeatrice <beatrice@dangofactory.net>2026-11-22 20:01:35 +0900
commit6e93939f2b885f1f53836fa3e19b398a5ebbdf40 (patch)
tree5fde91edefd5452acabd3e09426a5a47f232a64c /t/docs-php-markdown-todo
downloadText-Markdown-master.tar.gz
Text-Markdown-master.zip
Import Text-Markdown-1.000031.tar.gzHEADlocal/Text-Markdownmaster
Diffstat (limited to 't/docs-php-markdown-todo')
-rw-r--r--t/docs-php-markdown-todo/Email_auto_links.html3
-rw-r--r--t/docs-php-markdown-todo/Email_auto_links.text3
-rw-r--r--t/docs-php-markdown-todo/Emphasis.html72
-rw-r--r--t/docs-php-markdown-todo/Emphasis.text69
-rw-r--r--t/docs-php-markdown-todo/Inline_HTML_(Span).html4
-rw-r--r--t/docs-php-markdown-todo/Inline_HTML_(Span).text4
-rw-r--r--t/docs-php-markdown-todo/Ins_and_del.text17
-rw-r--r--t/docs-php-markdown-todo/Ins_and_del.xhtml17
-rw-r--r--t/docs-php-markdown-todo/Links_inline_style.html1
-rw-r--r--t/docs-php-markdown-todo/Links_inline_style.text1
-rw-r--r--t/docs-php-markdown-todo/Nesting.html11
-rw-r--r--t/docs-php-markdown-todo/Nesting.text11
-rw-r--r--t/docs-php-markdown-todo/Parens_in_URL.html11
-rw-r--r--t/docs-php-markdown-todo/Parens_in_URL.text14
14 files changed, 238 insertions, 0 deletions
diff --git a/t/docs-php-markdown-todo/Email_auto_links.html b/t/docs-php-markdown-todo/Email_auto_links.html
new file mode 100644
index 0000000..a32c408
--- /dev/null
+++ b/t/docs-php-markdown-todo/Email_auto_links.html
@@ -0,0 +1,3 @@
+<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/t/docs-php-markdown-todo/Email_auto_links.text b/t/docs-php-markdown-todo/Email_auto_links.text
new file mode 100644
index 0000000..a8af4ec
--- /dev/null
+++ b/t/docs-php-markdown-todo/Email_auto_links.text
@@ -0,0 +1,3 @@
+<michel.fortin@michelf.com>
+
+International domain names: <help@tūdaliņ.lv> \ No newline at end of file
diff --git a/t/docs-php-markdown-todo/Emphasis.html b/t/docs-php-markdown-todo/Emphasis.html
new file mode 100644
index 0000000..7399132
--- /dev/null
+++ b/t/docs-php-markdown-todo/Emphasis.html
@@ -0,0 +1,72 @@
+<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/t/docs-php-markdown-todo/Emphasis.text b/t/docs-php-markdown-todo/Emphasis.text
new file mode 100644
index 0000000..ec48dec
--- /dev/null
+++ b/t/docs-php-markdown-todo/Emphasis.text
@@ -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/t/docs-php-markdown-todo/Inline_HTML_(Span).html b/t/docs-php-markdown-todo/Inline_HTML_(Span).html
new file mode 100644
index 0000000..4d18aff
--- /dev/null
+++ b/t/docs-php-markdown-todo/Inline_HTML_(Span).html
@@ -0,0 +1,4 @@
+<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/t/docs-php-markdown-todo/Inline_HTML_(Span).text b/t/docs-php-markdown-todo/Inline_HTML_(Span).text
new file mode 100644
index 0000000..19028bb
--- /dev/null
+++ b/t/docs-php-markdown-todo/Inline_HTML_(Span).text
@@ -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/t/docs-php-markdown-todo/Ins_and_del.text b/t/docs-php-markdown-todo/Ins_and_del.text
new file mode 100644
index 0000000..2d54c66
--- /dev/null
+++ b/t/docs-php-markdown-todo/Ins_and_del.text
@@ -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/t/docs-php-markdown-todo/Ins_and_del.xhtml b/t/docs-php-markdown-todo/Ins_and_del.xhtml
new file mode 100644
index 0000000..60e8c5f
--- /dev/null
+++ b/t/docs-php-markdown-todo/Ins_and_del.xhtml
@@ -0,0 +1,17 @@
+<p>Here is a block tag ins:</p>
+
+<ins>
+<p>Some text</p>
+</ins>
+
+<p><ins>And here it is inside a paragraph.</ins></p>
+
+<p>And here it is <ins>in the middle of</ins> a paragraph.</p>
+
+<del>
+<p>Some text</p>
+</del>
+
+<p><del>And here is ins as a paragraph.</del></p>
+
+<p>And here it is <del>in the middle of</del> a paragraph.</p>
diff --git a/t/docs-php-markdown-todo/Links_inline_style.html b/t/docs-php-markdown-todo/Links_inline_style.html
new file mode 100644
index 0000000..d3e4d11
--- /dev/null
+++ b/t/docs-php-markdown-todo/Links_inline_style.html
@@ -0,0 +1 @@
+<p><a href="?}]*+|&amp;)">silly URL w/ angle brackets</a>.</p>
diff --git a/t/docs-php-markdown-todo/Links_inline_style.text b/t/docs-php-markdown-todo/Links_inline_style.text
new file mode 100644
index 0000000..600a044
--- /dev/null
+++ b/t/docs-php-markdown-todo/Links_inline_style.text
@@ -0,0 +1 @@
+[silly URL w/ angle brackets](<?}]*+|&)>).
diff --git a/t/docs-php-markdown-todo/Nesting.html b/t/docs-php-markdown-todo/Nesting.html
new file mode 100644
index 0000000..37845d3
--- /dev/null
+++ b/t/docs-php-markdown-todo/Nesting.html
@@ -0,0 +1,11 @@
+<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/t/docs-php-markdown-todo/Nesting.text b/t/docs-php-markdown-todo/Nesting.text
new file mode 100644
index 0000000..791538c
--- /dev/null
+++ b/t/docs-php-markdown-todo/Nesting.text
@@ -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/t/docs-php-markdown-todo/Parens_in_URL.html b/t/docs-php-markdown-todo/Parens_in_URL.html
new file mode 100644
index 0000000..a81aa02
--- /dev/null
+++ b/t/docs-php-markdown-todo/Parens_in_URL.html
@@ -0,0 +1,11 @@
+<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/t/docs-php-markdown-todo/Parens_in_URL.text b/t/docs-php-markdown-todo/Parens_in_URL.text
new file mode 100644
index 0000000..bb7be4f
--- /dev/null
+++ b/t/docs-php-markdown-todo/Parens_in_URL.text
@@ -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"