diff options
| author | beatrice <beatrice@dangofactory.net> | 2026-11-22 20:01:35 +0900 |
|---|---|---|
| committer | beatrice <beatrice@dangofactory.net> | 2026-11-22 20:01:35 +0900 |
| commit | 6e93939f2b885f1f53836fa3e19b398a5ebbdf40 (patch) | |
| tree | 5fde91edefd5452acabd3e09426a5a47f232a64c /t/Text-Markdown.mdtest | |
| download | Text-Markdown-master.tar.gz Text-Markdown-master.zip | |
Import Text-Markdown-1.000031.tar.gzHEADlocal/Text-Markdownmaster
Diffstat (limited to 't/Text-Markdown.mdtest')
22 files changed, 326 insertions, 0 deletions
diff --git a/t/Text-Markdown.mdtest/CoreDumps5.8.text b/t/Text-Markdown.mdtest/CoreDumps5.8.text new file mode 100644 index 0000000..30ce312 --- /dev/null +++ b/t/Text-Markdown.mdtest/CoreDumps5.8.text @@ -0,0 +1,7 @@ +* Unordered +1. Ordered + +Text + +* Unordered +1. Ordered diff --git a/t/Text-Markdown.mdtest/CoreDumps5.8.xhtml b/t/Text-Markdown.mdtest/CoreDumps5.8.xhtml new file mode 100644 index 0000000..8a2963e --- /dev/null +++ b/t/Text-Markdown.mdtest/CoreDumps5.8.xhtml @@ -0,0 +1,15 @@ +<ul> +<li>Unordered +<ol> +<li>Ordered</li> +</ol></li> +</ul> + +<p>Text</p> + +<ul> +<li>Unordered +<ol> +<li>Ordered</li> +</ol></li> +</ul> diff --git a/t/Text-Markdown.mdtest/Emphasis.text b/t/Text-Markdown.mdtest/Emphasis.text new file mode 100644 index 0000000..104f90e --- /dev/null +++ b/t/Text-Markdown.mdtest/Emphasis.text @@ -0,0 +1,4 @@ +_M*A*S*H_ here I am going with original Markdown.. + +foo_bar_bas I am going with PHP Markdown Extra here (by default, there is an option for original style behavior - see +docs).. diff --git a/t/Text-Markdown.mdtest/Emphasis.xhtml b/t/Text-Markdown.mdtest/Emphasis.xhtml new file mode 100644 index 0000000..96cef6d --- /dev/null +++ b/t/Text-Markdown.mdtest/Emphasis.xhtml @@ -0,0 +1,4 @@ +<p><em>M*A*S*H</em> here I am going with original Markdown..</p> + +<p>foo_bar_bas I am going with PHP Markdown Extra here (by default, there is an option for original style behavior - see +docs)..</p> diff --git a/t/Text-Markdown.mdtest/HTML-Comment-encoding.text b/t/Text-Markdown.mdtest/HTML-Comment-encoding.text new file mode 100644 index 0000000..557c6af --- /dev/null +++ b/t/Text-Markdown.mdtest/HTML-Comment-encoding.text @@ -0,0 +1,5 @@ +A markdown paragraph with a comment that *will* be processed by original Markdown. However MultiMarkdown and Pandoc do not convert the & sigil in the comment.. + +A paragraph <!-- This & *will* be converted by original Markdown --> + +<p><!-- This & will *not* be converted --></p> diff --git a/t/Text-Markdown.mdtest/HTML-Comment-encoding.xhtml b/t/Text-Markdown.mdtest/HTML-Comment-encoding.xhtml new file mode 100644 index 0000000..b19577f --- /dev/null +++ b/t/Text-Markdown.mdtest/HTML-Comment-encoding.xhtml @@ -0,0 +1,5 @@ +<p>A markdown paragraph with a comment that <em>will</em> be processed by original Markdown. However MultiMarkdown and Pandoc do not convert the & sigil in the comment.. </p> + +<p>A paragraph <!-- This & *will* be converted by original Markdown --></p> + +<p><!-- This & will *not* be converted --></p> diff --git a/t/Text-Markdown.mdtest/HTML5-attributes.html b/t/Text-Markdown.mdtest/HTML5-attributes.html new file mode 100644 index 0000000..9dc2b47 --- /dev/null +++ b/t/Text-Markdown.mdtest/HTML5-attributes.html @@ -0,0 +1,11 @@ +<h1 class=foo>foo</h1> + +<p class=bar> +this is a paragraph +</p> + +<h2 class=bar> +an h2 +</h2> + +<p>normal</p> diff --git a/t/Text-Markdown.mdtest/HTML5-attributes.text b/t/Text-Markdown.mdtest/HTML5-attributes.text new file mode 100644 index 0000000..66d655a --- /dev/null +++ b/t/Text-Markdown.mdtest/HTML5-attributes.text @@ -0,0 +1,11 @@ +<h1 class=foo>foo</h1> + +<p class=bar> +this is a paragraph +</p> + +<h2 class=bar> +an h2 +</h2> + +normal diff --git a/t/Text-Markdown.mdtest/Links_brackets.text b/t/Text-Markdown.mdtest/Links_brackets.text new file mode 100644 index 0000000..6dd3c5d --- /dev/null +++ b/t/Text-Markdown.mdtest/Links_brackets.text @@ -0,0 +1,2 @@ +[ZIP archives](http://en.wikipedia.org/wiki/ZIP_(file_format) "ZIP (file format) - Wikipedia, the free encyclopedia") + diff --git a/t/Text-Markdown.mdtest/Links_brackets.xhtml b/t/Text-Markdown.mdtest/Links_brackets.xhtml new file mode 100644 index 0000000..75376b9 --- /dev/null +++ b/t/Text-Markdown.mdtest/Links_brackets.xhtml @@ -0,0 +1 @@ +<p><a href="http://en.wikipedia.org/wiki/ZIP_(file_format)" title="ZIP (file format) - Wikipedia, the free encyclopedia">ZIP archives</a></p> diff --git a/t/Text-Markdown.mdtest/Links_multiline_bugs_1.html b/t/Text-Markdown.mdtest/Links_multiline_bugs_1.html new file mode 100644 index 0000000..386174a --- /dev/null +++ b/t/Text-Markdown.mdtest/Links_multiline_bugs_1.html @@ -0,0 +1,4 @@ +<p><a href="http://bugs.debian.org/459885">http://bugs.debian.org/459885</a></p> + +<p><a href="/someurl/">link +text</a></p> diff --git a/t/Text-Markdown.mdtest/Links_multiline_bugs_1.text b/t/Text-Markdown.mdtest/Links_multiline_bugs_1.text new file mode 100644 index 0000000..9744d4f --- /dev/null +++ b/t/Text-Markdown.mdtest/Links_multiline_bugs_1.text @@ -0,0 +1,7 @@ +<http://bugs.debian.org/459885> + +[link +text] [link +id] + +[link id]: /someurl/ diff --git a/t/Text-Markdown.mdtest/Links_multiline_bugs_2.html b/t/Text-Markdown.mdtest/Links_multiline_bugs_2.html new file mode 100644 index 0000000..7be828b --- /dev/null +++ b/t/Text-Markdown.mdtest/Links_multiline_bugs_2.html @@ -0,0 +1,4 @@ +<p><a href="http://bugs.debian.org/459885">http://bugs.debian.org/459885</a></p> + +<p>Bla, bla, bla, bla, bla, bla, bla, bla, bla, bla bla. This is <a href="http://www.ua.es">my <br /> +University</a>.</p> diff --git a/t/Text-Markdown.mdtest/Links_multiline_bugs_2.text b/t/Text-Markdown.mdtest/Links_multiline_bugs_2.text new file mode 100644 index 0000000..773679e --- /dev/null +++ b/t/Text-Markdown.mdtest/Links_multiline_bugs_2.text @@ -0,0 +1,6 @@ +<http://bugs.debian.org/459885> + +Bla, bla, bla, bla, bla, bla, bla, bla, bla, bla bla. This is [my +University][]. + + [my university]: http://www.ua.es diff --git a/t/Text-Markdown.mdtest/Links_reference_style.text b/t/Text-Markdown.mdtest/Links_reference_style.text new file mode 100644 index 0000000..8b1aaf9 --- /dev/null +++ b/t/Text-Markdown.mdtest/Links_reference_style.text @@ -0,0 +1,87 @@ +Foo [bar] [1]. + +Foo [bar][1]. + +Foo [bar] +[1]. + +[1]: /url/ "Title" + + +With [embedded [brackets]] [b]. + + +Indented [once][]. + +Indented [twice][]. + +Indented [thrice][]. + +Indented [four][] times. + + [once]: /url + + [twice]: /url + + [thrice]: /url + + [four]: /url + + +[b]: /url/ + +* * * + +[this] [this] should work + +So should [this][this]. + +And [this] []. + +And [this][]. + +And [this]. + +But not [that] []. + +Nor [that][]. + +Nor [that]. + +[Something in brackets like [this][] should work] + +[Same with [this].] + +In this case, [this](/somethingelse/) points to something else. + +Backslashing should suppress \[this] and [this\]. + +[this]: foo + + +* * * + +Here's one where the [link +breaks] across lines. + +Here's another where the [link +breaks] across lines, but with a line-ending space. + + +[link breaks]: /url/ + +More multi line edge cases. First a broken link id + +[link +text] [link +id] + +[link id]: /someurl/ + +Then a line with 2 chars of trailing whitespace and a line break [my +University][]. + +The a shortcut reference link with 2 chars of trailing whitespace and a line break [my +University]. + + [my university]: http://www.ua.es
\ No newline at end of file diff --git a/t/Text-Markdown.mdtest/Links_reference_style.xhtml b/t/Text-Markdown.mdtest/Links_reference_style.xhtml new file mode 100644 index 0000000..0793721 --- /dev/null +++ b/t/Text-Markdown.mdtest/Links_reference_style.xhtml @@ -0,0 +1,63 @@ +<p>Foo <a href="/url/" title="Title">bar</a>.</p> + +<p>Foo <a href="/url/" title="Title">bar</a>.</p> + +<p>Foo <a href="/url/" title="Title">bar</a>.</p> + +<p>With <a href="/url/">embedded [brackets]</a>.</p> + +<p>Indented <a href="/url">once</a>.</p> + +<p>Indented <a href="/url">twice</a>.</p> + +<p>Indented <a href="/url">thrice</a>.</p> + +<p>Indented [four][] times.</p> + +<pre><code>[four]: /url +</code></pre> + +<hr /> + +<p><a href="foo">this</a> should work</p> + +<p>So should <a href="foo">this</a>.</p> + +<p>And <a href="foo">this</a>.</p> + +<p>And <a href="foo">this</a>.</p> + +<p>And <a href="foo">this</a>.</p> + +<p>But not [that] [].</p> + +<p>Nor [that][].</p> + +<p>Nor [that].</p> + +<p>[Something in brackets like <a href="foo">this</a> should work]</p> + +<p>[Same with <a href="foo">this</a>.]</p> + +<p>In this case, <a href="/somethingelse/">this</a> points to something else.</p> + +<p>Backslashing should suppress [this] and [this].</p> + +<hr /> + +<p>Here's one where the <a href="/url/">link +breaks</a> across lines.</p> + +<p>Here's another where the <a href="/url/">link +breaks</a> across lines, but with a line-ending space.</p> + +<p>More multi line edge cases. First a broken link id</p> + +<p><a href="/someurl/">link +text</a></p> + +<p>Then a line with 2 chars of trailing whitespace and a line break <a href="http://www.ua.es">my <br /> +University</a>.</p> + +<p>The a shortcut reference link with 2 chars of trailing whitespace and a line break <a href="http://www.ua.es">my <br /> +University</a>.</p> diff --git a/t/Text-Markdown.mdtest/Lists-multilevel-md5-edgecase.text b/t/Text-Markdown.mdtest/Lists-multilevel-md5-edgecase.text new file mode 100644 index 0000000..6bd63e8 --- /dev/null +++ b/t/Text-Markdown.mdtest/Lists-multilevel-md5-edgecase.text @@ -0,0 +1,25 @@ +# text1 + + * text2 + + * text3 + + text4 + +## text5 + + * text6 + + * text7 + + text8 + +## text9 + + * text10 + + * text11 + + text12 + + text13 diff --git a/t/Text-Markdown.mdtest/Lists-multilevel-md5-edgecase.xhtml b/t/Text-Markdown.mdtest/Lists-multilevel-md5-edgecase.xhtml new file mode 100644 index 0000000..9c7617c --- /dev/null +++ b/t/Text-Markdown.mdtest/Lists-multilevel-md5-edgecase.xhtml @@ -0,0 +1,37 @@ +<h1>text1</h1> + +<ul> +<li><p>text2</p> + +<ul> +<li>text3</li> +</ul> + +<p>text4</p></li> +</ul> + +<h2>text5</h2> + +<ul> +<li><p>text6</p> + +<ul> +<li>text7</li> +</ul> + +<p>text8</p></li> +</ul> + +<h2>text9</h2> + +<ul> +<li><p>text10</p> + +<ul> +<li>text11</li> +</ul> + +<p>text12</p> + +<p>text13</p></li> +</ul> diff --git a/t/Text-Markdown.mdtest/PHP-ASP_tags.text b/t/Text-Markdown.mdtest/PHP-ASP_tags.text new file mode 100644 index 0000000..6cd1887 --- /dev/null +++ b/t/Text-Markdown.mdtest/PHP-ASP_tags.text @@ -0,0 +1,7 @@ +I am going with the same as Markdown.pl 1.0.2b8 here. *However* I reserve the right to also leave Template toolkit alone at a later date if I need to.. + +<%foo ok %> + +<?php test_foo ?> + +[% template_toolkit %]
\ No newline at end of file diff --git a/t/Text-Markdown.mdtest/PHP-ASP_tags.xhtml b/t/Text-Markdown.mdtest/PHP-ASP_tags.xhtml new file mode 100644 index 0000000..96eb227 --- /dev/null +++ b/t/Text-Markdown.mdtest/PHP-ASP_tags.xhtml @@ -0,0 +1,7 @@ +<p>I am going with the same as Markdown.pl 1.0.2b8 here. <em>However</em> I reserve the right to also leave Template toolkit alone at a later date if I need to..</p> + +<%foo ok %> + +<?php test_foo ?> + +<p>[% template_toolkit %]</p> diff --git a/t/Text-Markdown.mdtest/Unicode.text b/t/Text-Markdown.mdtest/Unicode.text new file mode 100644 index 0000000..4b63bea --- /dev/null +++ b/t/Text-Markdown.mdtest/Unicode.text @@ -0,0 +1,5 @@ +> Fo—o + +μορεοϋερ + +> ßåř diff --git a/t/Text-Markdown.mdtest/Unicode.xhtml b/t/Text-Markdown.mdtest/Unicode.xhtml new file mode 100644 index 0000000..ca06ddd --- /dev/null +++ b/t/Text-Markdown.mdtest/Unicode.xhtml @@ -0,0 +1,9 @@ +<blockquote> + <p>Fo—o</p> +</blockquote> + +<p>μορεοϋερ</p> + +<blockquote> + <p>ßåř</p> +</blockquote> |
