aboutsummaryrefslogtreecommitdiffstats
path: root/tests/misc
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2010-02-12 16:24:15 -0500
committerWaylan Limberg <waylan@gmail.com>2010-02-12 16:24:15 -0500
commit28caf01c8082dbed3a5ca87b070ffe5657514f01 (patch)
tree6aff8e9eb06daa4a4e5ebe6994e67f08b4397ee6 /tests/misc
parent7e0b959ef2a64f2339be28f258b895d7a79003a8 (diff)
downloadmarkdown-28caf01c8082dbed3a5ca87b070ffe5657514f01.tar.gz
markdown-28caf01c8082dbed3a5ca87b070ffe5657514f01.tar.bz2
markdown-28caf01c8082dbed3a5ca87b070ffe5657514f01.zip
Moved test dir back out of markdown lib. We don't need to install the tests in everyones site-packages. We just need to distrubute them in the tarball for people to run before installing etc.
Diffstat (limited to 'tests/misc')
-rw-r--r--tests/misc/CRLF_line_ends.html4
-rw-r--r--tests/misc/CRLF_line_ends.txt5
-rw-r--r--tests/misc/adjacent-headers.html2
-rw-r--r--tests/misc/adjacent-headers.txt2
-rw-r--r--tests/misc/amp-in-url.html1
-rw-r--r--tests/misc/amp-in-url.txt1
-rw-r--r--tests/misc/ampersand.html2
-rw-r--r--tests/misc/ampersand.txt5
-rw-r--r--tests/misc/arabic.html27
-rw-r--r--tests/misc/arabic.txt37
-rw-r--r--tests/misc/attributes2.html6
-rw-r--r--tests/misc/attributes2.txt10
-rw-r--r--tests/misc/autolinks_with_asterisks.html1
-rw-r--r--tests/misc/autolinks_with_asterisks.txt2
-rw-r--r--tests/misc/autolinks_with_asterisks_russian.html1
-rw-r--r--tests/misc/autolinks_with_asterisks_russian.txt3
-rw-r--r--tests/misc/backtick-escape.html3
-rw-r--r--tests/misc/backtick-escape.txt3
-rw-r--r--tests/misc/benchmark.dat56
-rw-r--r--tests/misc/bidi.html39
-rw-r--r--tests/misc/bidi.txt68
-rw-r--r--tests/misc/blank-block-quote.html3
-rw-r--r--tests/misc/blank-block-quote.txt6
-rw-r--r--tests/misc/blockquote-below-paragraph.html15
-rw-r--r--tests/misc/blockquote-below-paragraph.txt11
-rw-r--r--tests/misc/blockquote-hr.html16
-rw-r--r--tests/misc/blockquote-hr.txt21
-rw-r--r--tests/misc/blockquote.html24
-rw-r--r--tests/misc/blockquote.txt21
-rw-r--r--tests/misc/bold_links.html1
-rw-r--r--tests/misc/bold_links.txt1
-rw-r--r--tests/misc/br.html11
-rw-r--r--tests/misc/br.txt16
-rw-r--r--tests/misc/bracket_re.html60
-rw-r--r--tests/misc/bracket_re.txt61
-rw-r--r--tests/misc/code-first-line.html2
-rw-r--r--tests/misc/code-first-line.txt1
-rw-r--r--tests/misc/comments.html5
-rw-r--r--tests/misc/comments.txt7
-rw-r--r--tests/misc/div.html5
-rw-r--r--tests/misc/div.txt5
-rw-r--r--tests/misc/em-around-links.html13
-rw-r--r--tests/misc/em-around-links.txt14
-rw-r--r--tests/misc/em_strong.html10
-rw-r--r--tests/misc/em_strong.txt20
-rw-r--r--tests/misc/email.html2
-rw-r--r--tests/misc/email.txt3
-rw-r--r--tests/misc/funky-list.html11
-rw-r--r--tests/misc/funky-list.txt9
-rw-r--r--tests/misc/h1.html3
-rw-r--r--tests/misc/h1.txt7
-rw-r--r--tests/misc/hash.html11
-rw-r--r--tests/misc/hash.txt13
-rw-r--r--tests/misc/headers.html10
-rw-r--r--tests/misc/headers.txt15
-rw-r--r--tests/misc/hline.html2
-rw-r--r--tests/misc/hline.txt5
-rw-r--r--tests/misc/html-comments.html2
-rw-r--r--tests/misc/html-comments.txt2
-rw-r--r--tests/misc/html.html13
-rw-r--r--tests/misc/html.txt17
-rw-r--r--tests/misc/image-2.html2
-rw-r--r--tests/misc/image-2.txt3
-rw-r--r--tests/misc/image.html1
-rw-r--r--tests/misc/image.txt2
-rw-r--r--tests/misc/image_in_links.html1
-rw-r--r--tests/misc/image_in_links.txt3
-rw-r--r--tests/misc/inside_html.html1
-rw-r--r--tests/misc/inside_html.txt1
-rw-r--r--tests/misc/japanese.html11
-rw-r--r--tests/misc/japanese.txt15
-rw-r--r--tests/misc/lazy-block-quote.html6
-rw-r--r--tests/misc/lazy-block-quote.txt5
-rw-r--r--tests/misc/link-with-parenthesis.html1
-rw-r--r--tests/misc/link-with-parenthesis.txt1
-rw-r--r--tests/misc/lists.html36
-rw-r--r--tests/misc/lists.txt31
-rw-r--r--tests/misc/lists2.html5
-rw-r--r--tests/misc/lists2.txt3
-rw-r--r--tests/misc/lists3.html5
-rw-r--r--tests/misc/lists3.txt3
-rw-r--r--tests/misc/lists4.html8
-rw-r--r--tests/misc/lists4.txt5
-rw-r--r--tests/misc/lists5.html14
-rw-r--r--tests/misc/lists5.txt12
-rw-r--r--tests/misc/lists6.html18
-rw-r--r--tests/misc/lists6.txt14
-rw-r--r--tests/misc/markup-inside-p.html21
-rw-r--r--tests/misc/markup-inside-p.txt21
-rw-r--r--tests/misc/mismatched-tags.html11
-rw-r--r--tests/misc/mismatched-tags.txt9
-rw-r--r--tests/misc/missing-link-def.html1
-rw-r--r--tests/misc/missing-link-def.txt4
-rw-r--r--tests/misc/more_comments.html7
-rw-r--r--tests/misc/more_comments.txt9
-rw-r--r--tests/misc/multi-line-tags.html5
-rw-r--r--tests/misc/multi-line-tags.txt6
-rw-r--r--tests/misc/multi-paragraph-block-quote.html6
-rw-r--r--tests/misc/multi-paragraph-block-quote.txt8
-rw-r--r--tests/misc/multi-test.html20
-rw-r--r--tests/misc/multi-test.txt32
-rw-r--r--tests/misc/multiline-comments.html17
-rw-r--r--tests/misc/multiline-comments.txt18
-rw-r--r--tests/misc/nested-lists.html39
-rw-r--r--tests/misc/nested-lists.txt24
-rw-r--r--tests/misc/nested-patterns.html7
-rw-r--r--tests/misc/nested-patterns.txt7
-rw-r--r--tests/misc/normalize.html1
-rw-r--r--tests/misc/normalize.txt2
-rw-r--r--tests/misc/numeric-entity.html2
-rw-r--r--tests/misc/numeric-entity.txt4
-rw-r--r--tests/misc/para-with-hr.html3
-rw-r--r--tests/misc/para-with-hr.txt4
-rw-r--r--tests/misc/php.html11
-rw-r--r--tests/misc/php.txt13
-rw-r--r--tests/misc/pre.html13
-rw-r--r--tests/misc/pre.txt14
-rw-r--r--tests/misc/raw_whitespace.html8
-rw-r--r--tests/misc/raw_whitespace.txt10
-rw-r--r--tests/misc/russian.html6
-rw-r--r--tests/misc/russian.txt15
-rw-r--r--tests/misc/smart_em.html5
-rw-r--r--tests/misc/smart_em.txt9
-rw-r--r--tests/misc/some-test.html66
-rw-r--r--tests/misc/some-test.txt57
-rw-r--r--tests/misc/span.html6
-rw-r--r--tests/misc/span.txt10
-rw-r--r--tests/misc/strong-with-underscores.html1
-rw-r--r--tests/misc/strong-with-underscores.txt1
-rw-r--r--tests/misc/stronintags.html4
-rw-r--r--tests/misc/stronintags.txt8
-rw-r--r--tests/misc/tabs-in-lists.html42
-rw-r--r--tests/misc/tabs-in-lists.txt32
-rw-r--r--tests/misc/two-spaces.html21
-rw-r--r--tests/misc/two-spaces.txt17
-rw-r--r--tests/misc/uche.html3
-rw-r--r--tests/misc/uche.txt7
-rw-r--r--tests/misc/underscores.html6
-rw-r--r--tests/misc/underscores.txt11
-rw-r--r--tests/misc/url_spaces.html2
-rw-r--r--tests/misc/url_spaces.txt4
141 files changed, 1649 insertions, 0 deletions
diff --git a/tests/misc/CRLF_line_ends.html b/tests/misc/CRLF_line_ends.html
new file mode 100644
index 0000000..a72b1ca
--- /dev/null
+++ b/tests/misc/CRLF_line_ends.html
@@ -0,0 +1,4 @@
+<p>foo</p>
+<div>
+bar
+</div> \ No newline at end of file
diff --git a/tests/misc/CRLF_line_ends.txt b/tests/misc/CRLF_line_ends.txt
new file mode 100644
index 0000000..7d5e324
--- /dev/null
+++ b/tests/misc/CRLF_line_ends.txt
@@ -0,0 +1,5 @@
+foo
+
+<div>
+bar
+</div>
diff --git a/tests/misc/adjacent-headers.html b/tests/misc/adjacent-headers.html
new file mode 100644
index 0000000..bd171aa
--- /dev/null
+++ b/tests/misc/adjacent-headers.html
@@ -0,0 +1,2 @@
+<h1>this is a huge header</h1>
+<h2>this is a smaller header</h2> \ No newline at end of file
diff --git a/tests/misc/adjacent-headers.txt b/tests/misc/adjacent-headers.txt
new file mode 100644
index 0000000..0e626b9
--- /dev/null
+++ b/tests/misc/adjacent-headers.txt
@@ -0,0 +1,2 @@
+# this is a huge header #
+## this is a smaller header ##
diff --git a/tests/misc/amp-in-url.html b/tests/misc/amp-in-url.html
new file mode 100644
index 0000000..2170a54
--- /dev/null
+++ b/tests/misc/amp-in-url.html
@@ -0,0 +1 @@
+<p><a href="http://www.freewisdom.org/this&amp;that">link</a></p> \ No newline at end of file
diff --git a/tests/misc/amp-in-url.txt b/tests/misc/amp-in-url.txt
new file mode 100644
index 0000000..471106e
--- /dev/null
+++ b/tests/misc/amp-in-url.txt
@@ -0,0 +1 @@
+[link](http://www.freewisdom.org/this&that)
diff --git a/tests/misc/ampersand.html b/tests/misc/ampersand.html
new file mode 100644
index 0000000..94ed80c
--- /dev/null
+++ b/tests/misc/ampersand.html
@@ -0,0 +1,2 @@
+<p>&amp;</p>
+<p>AT&amp;T</p> \ No newline at end of file
diff --git a/tests/misc/ampersand.txt b/tests/misc/ampersand.txt
new file mode 100644
index 0000000..367d32c
--- /dev/null
+++ b/tests/misc/ampersand.txt
@@ -0,0 +1,5 @@
+&
+
+AT&T
+
+
diff --git a/tests/misc/arabic.html b/tests/misc/arabic.html
new file mode 100644
index 0000000..55991de
--- /dev/null
+++ b/tests/misc/arabic.html
@@ -0,0 +1,27 @@
+<h1>بايثون</h1>
+<p><strong>بايثون</strong> لغة برمجة حديثة بسيطة، واضحة، سريعة ، تستخدم أسلوب البرمجة الكائنية (OOP) وقابلة للتطوير بالإضافة إلى أنها مجانية و مفتوحة المصدر. صُنفت بالأساس كلغة تفسيرية ، بايثون مصممة أصلاً للأداء بعض المهام الخاصة أو المحدودة. إلا أنه يمكن استخدامها بايثون لإنجاز المشاريع الضخمه كأي لغة برمجية أخرى، غالباً ما يُنصح المبتدئين في ميدان البرمجة بتعلم هذه اللغة لأنها من بين أسهل اللغات البرمجية تعلماً.</p>
+<p>نشأت بايثون في مركز CWI (مركز العلوم والحاسب الآلي) بأمستردام على يد جويدو فان رُزوم. تم تطويرها بلغة C. أطلق فان رُزوم اسم "بايثون" على لغته تعبيرًا عن إعجابه بفِرقَة مسرحية هزلية شهيرة من بريطانيا، كانت تطلق على نفسها اسم مونتي بايثون Monty Python.</p>
+<p>تتميز بايثون بمجتمعها النشط ، كما أن لها الكثير من المكتبات البرمجية ذات الأغراض الخاصة والتي برمجها أشخاص من مجتمع هذه اللغة ، مثلاً مكتبة PyGame التي توفر مجموعه من الوظائف من اجل برمجة الالعاب. ويمكن لبايثون التعامل مع العديد من أنواع قواعد البيانات مثل MySQL وغيره.</p>
+<h2>أمثلة</h2>
+<p>مثال Hello World!</p>
+<pre><code>print "Hello World!"
+</code></pre>
+<p>مثال لاستخراج المضروب Factorial :</p>
+<pre><code>num = 1
+x = raw_input('Insert the number please ')
+x = int(x)
+
+if x &gt; 69:
+ print 'Math Error !'
+else:
+ while x &gt; 1:
+ num *= x
+ x = x-1
+
+ print num
+</code></pre>
+<h2>وصلات خارجية</h2>
+<ul>
+<li><a href="http://www.python.org">الموقع الرسمي للغة بايثون</a></li>
+</ul>
+<p>بذرة حاس </p> \ No newline at end of file
diff --git a/tests/misc/arabic.txt b/tests/misc/arabic.txt
new file mode 100644
index 0000000..ba2fef4
--- /dev/null
+++ b/tests/misc/arabic.txt
@@ -0,0 +1,37 @@
+
+بايثون
+=====
+
+**بايثون** لغة برمجة حديثة بسيطة، واضحة، سريعة ، تستخدم أسلوب البرمجة الكائنية (OOP) وقابلة للتطوير بالإضافة إلى أنها مجانية و مفتوحة المصدر. صُنفت بالأساس كلغة تفسيرية ، بايثون مصممة أصلاً للأداء بعض المهام الخاصة أو المحدودة. إلا أنه يمكن استخدامها بايثون لإنجاز المشاريع الضخمه كأي لغة برمجية أخرى، غالباً ما يُنصح المبتدئين في ميدان البرمجة بتعلم هذه اللغة لأنها من بين أسهل اللغات البرمجية تعلماً.
+
+نشأت بايثون في مركز CWI (مركز العلوم والحاسب الآلي) بأمستردام على يد جويدو فان رُزوم. تم تطويرها بلغة C. أطلق فان رُزوم اسم "بايثون" على لغته تعبيرًا عن إعجابه بفِرقَة مسرحية هزلية شهيرة من بريطانيا، كانت تطلق على نفسها اسم مونتي بايثون Monty Python.
+
+تتميز بايثون بمجتمعها النشط ، كما أن لها الكثير من المكتبات البرمجية ذات الأغراض الخاصة والتي برمجها أشخاص من مجتمع هذه اللغة ، مثلاً مكتبة PyGame التي توفر مجموعه من الوظائف من اجل برمجة الالعاب. ويمكن لبايثون التعامل مع العديد من أنواع قواعد البيانات مثل MySQL وغيره.
+
+##أمثلة
+مثال Hello World!
+
+ print "Hello World!"
+
+
+مثال لاستخراج المضروب Factorial :
+
+ num = 1
+ x = raw_input('Insert the number please ')
+ x = int(x)
+
+ if x > 69:
+ print 'Math Error !'
+ else:
+ while x > 1:
+ num *= x
+ x = x-1
+
+ print num
+
+
+
+##وصلات خارجية
+* [الموقع الرسمي للغة بايثون](http://www.python.org)
+
+ بذرة حاس
diff --git a/tests/misc/attributes2.html b/tests/misc/attributes2.html
new file mode 100644
index 0000000..5971cc8
--- /dev/null
+++ b/tests/misc/attributes2.html
@@ -0,0 +1,6 @@
+<p id="TABLE.OF.CONTENTS" />
+<ul>
+<li id="TABLEOFCONTENTS" />
+</ul>
+<p id="TABLEOFCONTENTS">Or in the middle of the text </p>
+<p id="tableofcontents" /> \ No newline at end of file
diff --git a/tests/misc/attributes2.txt b/tests/misc/attributes2.txt
new file mode 100644
index 0000000..d635cb2
--- /dev/null
+++ b/tests/misc/attributes2.txt
@@ -0,0 +1,10 @@
+{@id=TABLE.OF.CONTENTS}
+
+
+* {@id=TABLEOFCONTENTS}
+
+
+Or in the middle of the text {@id=TABLEOFCONTENTS}
+
+{@id=tableofcontents}
+
diff --git a/tests/misc/autolinks_with_asterisks.html b/tests/misc/autolinks_with_asterisks.html
new file mode 100644
index 0000000..7cb852f
--- /dev/null
+++ b/tests/misc/autolinks_with_asterisks.html
@@ -0,0 +1 @@
+<p><a href="http://some.site/weird*url*thing">http://some.site/weird*url*thing</a></p> \ No newline at end of file
diff --git a/tests/misc/autolinks_with_asterisks.txt b/tests/misc/autolinks_with_asterisks.txt
new file mode 100644
index 0000000..24de5d9
--- /dev/null
+++ b/tests/misc/autolinks_with_asterisks.txt
@@ -0,0 +1,2 @@
+<http://some.site/weird*url*thing>
+
diff --git a/tests/misc/autolinks_with_asterisks_russian.html b/tests/misc/autolinks_with_asterisks_russian.html
new file mode 100644
index 0000000..64cd635
--- /dev/null
+++ b/tests/misc/autolinks_with_asterisks_russian.html
@@ -0,0 +1 @@
+<p><a href="http://some.site/нечто*очень*странное">http://some.site/нечто*очень*странное</a></p> \ No newline at end of file
diff --git a/tests/misc/autolinks_with_asterisks_russian.txt b/tests/misc/autolinks_with_asterisks_russian.txt
new file mode 100644
index 0000000..74465f1
--- /dev/null
+++ b/tests/misc/autolinks_with_asterisks_russian.txt
@@ -0,0 +1,3 @@
+<http://some.site/нечто*очень*странное>
+
+
diff --git a/tests/misc/backtick-escape.html b/tests/misc/backtick-escape.html
new file mode 100644
index 0000000..07f5115
--- /dev/null
+++ b/tests/misc/backtick-escape.html
@@ -0,0 +1,3 @@
+<p>\`This should not be in code.\`
+`This also should not be in code.`
+`And finally this should not be in code.`</p> \ No newline at end of file
diff --git a/tests/misc/backtick-escape.txt b/tests/misc/backtick-escape.txt
new file mode 100644
index 0000000..b4d80b2
--- /dev/null
+++ b/tests/misc/backtick-escape.txt
@@ -0,0 +1,3 @@
+\\`This should not be in code.\\`
+\`This also should not be in code.\`
+\`And finally this should not be in code.`
diff --git a/tests/misc/benchmark.dat b/tests/misc/benchmark.dat
new file mode 100644
index 0000000..ac0334c
--- /dev/null
+++ b/tests/misc/benchmark.dat
@@ -0,0 +1,56 @@
+construction:0.000000:0.000000
+CRLF_line_ends:0.020000:0.000000
+adjacent-headers:0.020000:0.000000
+amp-in-url:0.020000:0.000000
+ampersand:0.010000:0.000000
+arabic:0.110000:0.000000
+attributes2:0.020000:0.000000
+bidi:0.310000:0.000000
+blank-block-quote:0.010000:0.000000
+blockquote:0.090000:0.000000
+blockquote-hr:0.060000:0.000000
+bold_links:0.020000:0.000000
+br:0.040000:0.000000
+bracket_re:7.490000:0.000000
+code-first-line:0.020000:0.000000
+comments:0.040000:0.000000
+div:0.040000:0.000000
+email:0.030000:0.000000
+funky-list:0.060000:0.000000
+h1:0.040000:0.000000
+hash:0.040000:0.000000
+headers:0.060000:0.000000
+hline:0.020000:0.000000
+html:0.090000:0.000000
+image:0.040000:0.000000
+image-2:0.060000:0.000000
+image_in_links:0.060000:0.000000
+inside_html:0.040000:0.000000
+japanese:0.150000:0.000000
+lazy-block-quote:0.050000:0.000000
+lists:0.110000:0.000000
+lists2:0.040000:0.000000
+lists3:0.040000:0.000000
+lists4:0.050000:0.000000
+lists5:0.070000:0.000000
+markup-inside-p:0.080000:0.000000
+mismatched-tags:0.070000:0.000000
+more_comments:0.060000:0.000000
+multi-line-tags:0.080000:0.000000
+multi-paragraph-block-quote:0.070000:0.000000
+multi-test:0.150000:0.000000
+multiline-comments:0.090000:0.000000
+normalize:0.060000:0.000000
+numeric-entity:0.090000:0.000000
+php:0.080000:0.000000
+pre:0.080000:0.000000
+russian:0.200000:0.000000
+some-test:0.200000:0.000000
+span:0.140000:0.000000
+strong-with-underscores:0.090000:0.000000
+stronintags:0.160000:0.000000
+tabs-in-lists:0.170000:0.000000
+two-spaces:0.160000:0.000000
+uche:0.150000:0.000000
+underscores:0.120000:0.000000
+url_spaces:0.120000:0.000000
diff --git a/tests/misc/bidi.html b/tests/misc/bidi.html
new file mode 100644
index 0000000..ffe04dc
--- /dev/null
+++ b/tests/misc/bidi.html
@@ -0,0 +1,39 @@
+<p><strong>Python</strong>(パイソン)は、<a href="http://en.wikipedia.org/wiki/Guido_van_Rossum">Guido van Rossum</a> によって作られたオープンソースのオブジェクト指向スクリプト言語。<a href="http://ja.wikipedia.org/wiki/Perl">Perl</a>とともに欧米で広く普及している。イギリスのテレビ局 BBC が製作したコメディ番組『空飛ぶモンティ・パイソン』にちなんで名付けられた。 (Pythonには、爬虫類のニシキヘビの意味があり、Python言語のマスコットやアイコンとして使われることがある。)</p>
+<p>|||||||||||||||||||||||||||||THIS SHOULD BE LTR|||||||||||||||||||||||||</p>
+<p dir="rtl">|||||||||||||||||||||||||||||THIS SHOULD BE RTL||||||||||||||||||||||||| </p>
+<p dir="ltr">(<strong>بايثون</strong> لغة برمجة حديثة بسيطة، واضحة، سريعة ، تستخدم أسلوب البرمجة الكائنية (THIS SHOULD BE LTR ) وقابلة للتطوير بالإضافة إلى أنها مجانية و مفتوح </p>
+<p>پایتون زبان برنامه‌نویسی تفسیری و سطح بالا ، شی‌گرا و یک زبان برنامه‌نویسی تفسیری سمت سرور قدرتمند است که توسط گیدو ون روسوم در سال ۱۹۹۰ ساخته شد. این زبان در ویژگی‌ها شبیه پرل، روبی، اسکیم، اسمال‌تاک و تی‌سی‌ال است و از مدیریت خودکار حافظه استفاده می‌کند</p>
+<p>Python,是一种面向对象的、直譯式的计算机程序设计语言,也是一种功能强大而完善的通用型语言,已经具有十多年的发展历史,成熟且稳定。</p>
+<p>ބްލޫ ވޭލްގެ ދޫ މަތީގައި އެއްފަހަރާ 50 މީހުންނަށް ތިބެވިދާނެވެ. ބޮޑު މަހުގެ ދުލަކީ އެހާމެ ބޮޑު އެއްޗެކެވެ.</p>
+<p><strong>உருது</strong> 13ஆம் நூற்றாண்டில் உருவான ஒரு இந்தோ-ஐரோப்பிய மொழியாகும். உருது, ஹிந்தியுடன் சேர்த்து "ஹிந்துஸ்தானி" என அழைக்கப்படுகின்றது. மண்டரின், ஆங்கிலம் ஆகியவற்றுக்கு அடுத்தபடியாக மூன்றாவது கூடிய அளவு மக்களால் புரிந்து கொள்ளப்படக்கூடியது ஹிந்துஸ்தானியேயாகும். தாய் மொழியாகப் பேசுபவர்கள் எண்ணிக்கையின் அடிப்படையில் உருது உலகின் 20 ஆவது பெரிய மொழியாகும். 6 கோடி மக்கள் இதனைத் தாய் மொழியாகக் கொண்டுள்ளார்கள். இரண்டாவது மொழியாகக் கொண்டுள்ளவர்கள் உட்பட 11 கோடிப் பேர் இதனைப் பேசுகிறார்கள். உருது பாகிஸ்தானின் அரசகரும மொழியாகவும், இந்தியாவின் அரசகரும மொழிகளுள் ஒன்றாகவும் விளங்குகிறது.</p>
+<p>اردو ہندوآریائی زبانوں کی ہندويورپی شاخ کی ایک زبان ہے جو تيرھويں صدی ميں بر صغير ميں پيدا ہوئی ـ اردو پاکستان کی سرکاری زبان ہے اور بھارت کی سرکاری زبانوں ميں سے ايک ہے۔ اردو بھارت ميں 5 کروڑ اور پاکستان ميں 1 کروڑ لوگوں کی مادری زبان ہے مگر اسے بھارت اور پاکستان کے تقریباً 50 کروڑ لوگ بول اور سمجھ سکتے ھیں ۔ جن میں سے تقریباً 10.5 کروڑ لوگ اسے باقاعدہ بولتے ھیں۔</p>
+<h1>بايثون</h1>
+<p><strong>بايثون</strong> لغة برمجة حديثة بسيطة، واضحة، سريعة ، تستخدم أسلوب البرمجة الكائنية (OOP) وقابلة للتطوير بالإضافة إلى أنها مجانية و مفتوحة المصدر. صُنفت بالأساس كلغة تفسيرية ، بايثون مصممة أصلاً للأداء بعض المهام الخاصة أو المحدودة. إلا أنه يمكن استخدامها بايثون لإنجاز المشاريع الضخمه كأي لغة برمجية أخرى، غالباً ما يُنصح المبتدئين في ميدان البرمجة بتعلم هذه اللغة لأنها من بين أسهل اللغات البرمجية تعلماً.</p>
+<p>|||||||||||||||||||||||||||||THIS SHOULD BE RTL|||||||||||||||||||||||||</p>
+<p>(نشأت بايثون في مركز CWI (مركز العلوم والحاسب الآلي) بأمستردام على يد جويدو فان رُزوم. تم تطويرها بلغة C. أطلق فان رُزوم اسم "بايثون" على لغته تعبيرًا عن إعجابه بفِرقَة مسرحية هزلية شهيرة من بريطانيا، كانت تطلق على نفسها اسم مونتي بايثون Monty Python.</p>
+<p>تتميز بايثون بمجتمعها النشط ، كما أن لها الكثير من المكتبات البرمجية ذات الأغراض الخاصة والتي برمجها أشخاص من مجتمع هذه اللغة ، مثلاً مكتبة PyGame التي توفر مجموعه من الوظائف من اجل برمجة الالعاب. ويمكن لبايثون التعامل مع العديد من أنواع قواعد البيانات مثل MySQL وغيره.</p>
+<h2>أمثلة</h2>
+<p>مثال Hello World!</p>
+<pre><code>print "Hello World!"
+</code></pre>
+<p>مثال لاستخراج المضروب Factorial :</p>
+<pre><code>num = 1
+x = raw_input('Insert the number please ')
+x = int(x)
+
+if x &gt; 69:
+ print 'Math Error !'
+else:
+ while x &gt; 1:
+ num *= x
+ x = x-1
+
+ print num
+</code></pre>
+<h2>وصلات خارجية</h2>
+<ul>
+<li><a href="http://www.python.org">الموقع الرسمي للغة بايثون</a></li>
+</ul>
+<p>بذرة حاس </p>
+<p><strong>Недвард «Нед» Фландерс</strong> (Nedward «Ned» Flanders) — вымышленный персонаж мультсериала «[Симпсоны][]», озвученный Гарри Ширером. Он и его семья живут по соседству от семьи Симпсонов. Набожный христианин, Нед является одним из столпов морали Спрингфилда. В эпизоде «Alone Again, Natura-Diddily» он овдовел, его жена Мод погибла в результате несчастного случая. </p>
+<p>Нед был одним из первых персонажей в мультсериале, который не был членом семьи Симпсонов. Начиная с первых серий, он регулярно появляется в «Симпсонах». Считается, что Нед Фландерс был назван в честь улицы <em>Northeast Flanders St.</em> в <a href="http://www.portland.gov">Портленде</a>, Орегон, родном городе создателя мультсериала Мэтта Грейнинга]]. Надпись на указателе улицы <em>NE Flanders St.</em> хулиганы часто исправляли на <em>NED Flanders St.</em></p> \ No newline at end of file
diff --git a/tests/misc/bidi.txt b/tests/misc/bidi.txt
new file mode 100644
index 0000000..f11ff1c
--- /dev/null
+++ b/tests/misc/bidi.txt
@@ -0,0 +1,68 @@
+**Python**(パイソン)は、[Guido van Rossum](http://en.wikipedia.org/wiki/Guido_van_Rossum) によって作られたオープンソースのオブジェクト指向スクリプト言語。[Perl](http://ja.wikipedia.org/wiki/Perl)とともに欧米で広く普及している。イギリスのテレビ局 BBC が製作したコメディ番組『空飛ぶモンティ・パイソン』にちなんで名付けられた。 (Pythonには、爬虫類のニシキヘビの意味があり、Python言語のマスコットやアイコンとして使われることがある。)
+
+|||||||||||||||||||||||||||||THIS SHOULD BE LTR|||||||||||||||||||||||||
+
+|||||||||||||||||||||||||||||THIS SHOULD BE RTL||||||||||||||||||||||||| {@dir=rtl}
+
+
+(**بايثون** لغة برمجة حديثة بسيطة، واضحة، سريعة ، تستخدم أسلوب البرمجة الكائنية (THIS SHOULD BE LTR ) وقابلة للتطوير {@dir=ltr} بالإضافة إلى أنها مجانية و مفتوح
+
+
+
+
+
+پایتون زبان برنامه‌نویسی تفسیری و سطح بالا ، شی‌گرا و یک زبان برنامه‌نویسی تفسیری سمت سرور قدرتمند است که توسط گیدو ون روسوم در سال ۱۹۹۰ ساخته شد. این زبان در ویژگی‌ها شبیه پرل، روبی، اسکیم، اسمال‌تاک و تی‌سی‌ال است و از مدیریت خودکار حافظه استفاده می‌کند
+
+Python,是一种面向对象的、直譯式的计算机程序设计语言,也是一种功能强大而完善的通用型语言,已经具有十多年的发展历史,成熟且稳定。
+
+ބްލޫ ވޭލްގެ ދޫ މަތީގައި އެއްފަހަރާ 50 މީހުންނަށް ތިބެވިދާނެވެ. ބޮޑު މަހުގެ ދުލަކީ އެހާމެ ބޮޑު އެއްޗެކެވެ.
+
+**உருது** 13ஆம் நூற்றாண்டில் உருவான ஒரு இந்தோ-ஐரோப்பிய மொழியாகும். உருது, ஹிந்தியுடன் சேர்த்து "ஹிந்துஸ்தானி" என அழைக்கப்படுகின்றது. மண்டரின், ஆங்கிலம் ஆகியவற்றுக்கு அடுத்தபடியாக மூன்றாவது கூடிய அளவு மக்களால் புரிந்து கொள்ளப்படக்கூடியது ஹிந்துஸ்தானியேயாகும். தாய் மொழியாகப் பேசுபவர்கள் எண்ணிக்கையின் அடிப்படையில் உருது உலகின் 20 ஆவது பெரிய மொழியாகும். 6 கோடி மக்கள் இதனைத் தாய் மொழியாகக் கொண்டுள்ளார்கள். இரண்டாவது மொழியாகக் கொண்டுள்ளவர்கள் உட்பட 11 கோடிப் பேர் இதனைப் பேசுகிறார்கள். உருது பாகிஸ்தானின் அரசகரும மொழியாகவும், இந்தியாவின் அரசகரும மொழிகளுள் ஒன்றாகவும் விளங்குகிறது.
+
+اردو ہندوآریائی زبانوں کی ہندويورپی شاخ کی ایک زبان ہے جو تيرھويں صدی ميں بر صغير ميں پيدا ہوئی ـ اردو پاکستان کی سرکاری زبان ہے اور بھارت کی سرکاری زبانوں ميں سے ايک ہے۔ اردو بھارت ميں 5 کروڑ اور پاکستان ميں 1 کروڑ لوگوں کی مادری زبان ہے مگر اسے بھارت اور پاکستان کے تقریباً 50 کروڑ لوگ بول اور سمجھ سکتے ھیں ۔ جن میں سے تقریباً 10.5 کروڑ لوگ اسے باقاعدہ بولتے ھیں۔
+
+بايثون
+=====
+
+**بايثون** لغة برمجة حديثة بسيطة، واضحة، سريعة ، تستخدم أسلوب البرمجة الكائنية (OOP) وقابلة للتطوير بالإضافة إلى أنها مجانية و مفتوحة المصدر. صُنفت بالأساس كلغة تفسيرية ، بايثون مصممة أصلاً للأداء بعض المهام الخاصة أو المحدودة. إلا أنه يمكن استخدامها بايثون لإنجاز المشاريع الضخمه كأي لغة برمجية أخرى، غالباً ما يُنصح المبتدئين في ميدان البرمجة بتعلم هذه اللغة لأنها من بين أسهل اللغات البرمجية تعلماً.
+
+|||||||||||||||||||||||||||||THIS SHOULD BE RTL|||||||||||||||||||||||||
+
+(نشأت بايثون في مركز CWI (مركز العلوم والحاسب الآلي) بأمستردام على يد جويدو فان رُزوم. تم تطويرها بلغة C. أطلق فان رُزوم اسم "بايثون" على لغته تعبيرًا عن إعجابه بفِرقَة مسرحية هزلية شهيرة من بريطانيا، كانت تطلق على نفسها اسم مونتي بايثون Monty Python.
+
+تتميز بايثون بمجتمعها النشط ، كما أن لها الكثير من المكتبات البرمجية ذات الأغراض الخاصة والتي برمجها أشخاص من مجتمع هذه اللغة ، مثلاً مكتبة PyGame التي توفر مجموعه من الوظائف من اجل برمجة الالعاب. ويمكن لبايثون التعامل مع العديد من أنواع قواعد البيانات مثل MySQL وغيره.
+
+##أمثلة
+مثال Hello World!
+
+ print "Hello World!"
+
+
+مثال لاستخراج المضروب Factorial :
+
+ num = 1
+ x = raw_input('Insert the number please ')
+ x = int(x)
+
+ if x > 69:
+ print 'Math Error !'
+ else:
+ while x > 1:
+ num *= x
+ x = x-1
+
+ print num
+
+
+
+##وصلات خارجية
+* [الموقع الرسمي للغة بايثون](http://www.python.org)
+
+ بذرة حاس
+
+
+**Недвард «Нед» Фландерс** (Nedward «Ned» Flanders) — вымышленный персонаж мультсериала «[Симпсоны][]», озвученный Гарри Ширером. Он и его семья живут по соседству от семьи Симпсонов. Набожный христианин, Нед является одним из столпов морали Спрингфилда. В эпизоде «Alone Again, Natura-Diddily» он овдовел, его жена Мод погибла в результате несчастного случая.
+
+Нед был одним из первых персонажей в мультсериале, который не был членом семьи Симпсонов. Начиная с первых серий, он регулярно появляется в «Симпсонах». Считается, что Нед Фландерс был назван в честь улицы *Northeast Flanders St.* в [Портленде](http://www.portland.gov), Орегон, родном городе создателя мультсериала Мэтта Грейнинга]]. Надпись на указателе улицы *NE Flanders St.* хулиганы часто исправляли на _NED Flanders St._
+
+
diff --git a/tests/misc/blank-block-quote.html b/tests/misc/blank-block-quote.html
new file mode 100644
index 0000000..23df17a
--- /dev/null
+++ b/tests/misc/blank-block-quote.html
@@ -0,0 +1,3 @@
+<p>aaaaaaaaaaa</p>
+<blockquote />
+<p>bbbbbbbbbbb</p> \ No newline at end of file
diff --git a/tests/misc/blank-block-quote.txt b/tests/misc/blank-block-quote.txt
new file mode 100644
index 0000000..75bfc74
--- /dev/null
+++ b/tests/misc/blank-block-quote.txt
@@ -0,0 +1,6 @@
+
+aaaaaaaaaaa
+
+>
+
+bbbbbbbbbbb
diff --git a/tests/misc/blockquote-below-paragraph.html b/tests/misc/blockquote-below-paragraph.html
new file mode 100644
index 0000000..a138933
--- /dev/null
+++ b/tests/misc/blockquote-below-paragraph.html
@@ -0,0 +1,15 @@
+<p>Paragraph</p>
+<blockquote>
+<p>Block quote
+Yep</p>
+</blockquote>
+<p>Paragraph</p>
+<blockquote>
+<p>no space
+Nope</p>
+</blockquote>
+<p>Paragraph one</p>
+<blockquote>
+<p>blockquote
+More blockquote.</p>
+</blockquote> \ No newline at end of file
diff --git a/tests/misc/blockquote-below-paragraph.txt b/tests/misc/blockquote-below-paragraph.txt
new file mode 100644
index 0000000..529e5a9
--- /dev/null
+++ b/tests/misc/blockquote-below-paragraph.txt
@@ -0,0 +1,11 @@
+Paragraph
+> Block quote
+> Yep
+
+Paragraph
+>no space
+>Nope
+
+Paragraph one
+> blockquote
+More blockquote.
diff --git a/tests/misc/blockquote-hr.html b/tests/misc/blockquote-hr.html
new file mode 100644
index 0000000..61c1a3c
--- /dev/null
+++ b/tests/misc/blockquote-hr.html
@@ -0,0 +1,16 @@
+<p>This is a paragraph.</p>
+<hr />
+<blockquote>
+<p>Block quote with horizontal lines.</p>
+<hr />
+<blockquote>
+<p>Double block quote.</p>
+<hr />
+<p>End of the double block quote.</p>
+</blockquote>
+<p>A new paragraph.
+With multiple lines.
+Even a lazy line.</p>
+<hr />
+<p>The last line.</p>
+</blockquote> \ No newline at end of file
diff --git a/tests/misc/blockquote-hr.txt b/tests/misc/blockquote-hr.txt
new file mode 100644
index 0000000..ef9c44f
--- /dev/null
+++ b/tests/misc/blockquote-hr.txt
@@ -0,0 +1,21 @@
+This is a paragraph.
+
+---
+
+> Block quote with horizontal lines.
+
+> ---
+
+> > Double block quote.
+
+> > ---
+
+> > End of the double block quote.
+
+> A new paragraph.
+> With multiple lines.
+Even a lazy line.
+
+> ---
+
+> The last line.
diff --git a/tests/misc/blockquote.html b/tests/misc/blockquote.html
new file mode 100644
index 0000000..4481d51
--- /dev/null
+++ b/tests/misc/blockquote.html
@@ -0,0 +1,24 @@
+<blockquote>
+<p>blockquote with no whitespace before <code>&gt;</code>.</p>
+</blockquote>
+<p>foo</p>
+<blockquote>
+<p>blockquote with one space before the <code>&gt;</code>.</p>
+</blockquote>
+<p>bar</p>
+<blockquote>
+<p>blockquote with 2 spaces.</p>
+</blockquote>
+<p>baz</p>
+<blockquote>
+<p>this has three spaces so its a paragraph.</p>
+</blockquote>
+<p>blah</p>
+<pre><code>&gt; this one had four so it's a code block.
+</code></pre>
+<blockquote>
+<blockquote>
+<p>this nested blockquote has 0 on level one and 3 (one after the first <code>&gt;</code> + 2 more) on level 2.</p>
+<p>and this has 4 on level 2 - another code block.</p>
+</blockquote>
+</blockquote> \ No newline at end of file
diff --git a/tests/misc/blockquote.txt b/tests/misc/blockquote.txt
new file mode 100644
index 0000000..be3ff90
--- /dev/null
+++ b/tests/misc/blockquote.txt
@@ -0,0 +1,21 @@
+> blockquote with no whitespace before `>`.
+
+foo
+
+ > blockquote with one space before the `>`.
+
+bar
+
+ > blockquote with 2 spaces.
+
+baz
+
+ > this has three spaces so its a paragraph.
+
+blah
+
+ > this one had four so it's a code block.
+
+> > this nested blockquote has 0 on level one and 3 (one after the first `>` + 2 more) on level 2.
+
+> > and this has 4 on level 2 - another code block.
diff --git a/tests/misc/bold_links.html b/tests/misc/bold_links.html
new file mode 100644
index 0000000..5a78e57
--- /dev/null
+++ b/tests/misc/bold_links.html
@@ -0,0 +1 @@
+<p><strong>bold <a href="http://example.com">link</a></strong></p> \ No newline at end of file
diff --git a/tests/misc/bold_links.txt b/tests/misc/bold_links.txt
new file mode 100644
index 0000000..a07f441
--- /dev/null
+++ b/tests/misc/bold_links.txt
@@ -0,0 +1 @@
+**bold [link](http://example.com)**
diff --git a/tests/misc/br.html b/tests/misc/br.html
new file mode 100644
index 0000000..08563a5
--- /dev/null
+++ b/tests/misc/br.html
@@ -0,0 +1,11 @@
+<p>Output:</p>
+<pre><code>&lt;p&gt;Some of these words &lt;em&gt;are emphasized&lt;/em&gt;.
+Some of these words &lt;em&gt;are emphasized also&lt;/em&gt;.&lt;/p&gt;
+
+&lt;p&gt;Use two asterisks for &lt;strong&gt;strong emphasis&lt;/strong&gt;.
+Or, if you prefer, &lt;strong&gt;use two underscores instead&lt;/strong&gt;.&lt;/p&gt;
+</code></pre>
+<h2>Lists</h2>
+<p>Unordered (bulleted) lists use asterisks, pluses, and hyphens (<code>*</code>,
+<code>+</code>, and <code>-</code>) as list markers. These three markers are
+interchangable; this:</p> \ No newline at end of file
diff --git a/tests/misc/br.txt b/tests/misc/br.txt
new file mode 100644
index 0000000..59d29e0
--- /dev/null
+++ b/tests/misc/br.txt
@@ -0,0 +1,16 @@
+Output:
+
+ <p>Some of these words <em>are emphasized</em>.
+ Some of these words <em>are emphasized also</em>.</p>
+
+ <p>Use two asterisks for <strong>strong emphasis</strong>.
+ Or, if you prefer, <strong>use two underscores instead</strong>.</p>
+
+
+
+## Lists ##
+
+Unordered (bulleted) lists use asterisks, pluses, and hyphens (`*`,
+`+`, and `-`) as list markers. These three markers are
+interchangable; this:
+
diff --git a/tests/misc/bracket_re.html b/tests/misc/bracket_re.html
new file mode 100644
index 0000000..f48a612
--- /dev/null
+++ b/tests/misc/bracket_re.html
@@ -0,0 +1,60 @@
+<p>[x
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx</p> \ No newline at end of file
diff --git a/tests/misc/bracket_re.txt b/tests/misc/bracket_re.txt
new file mode 100644
index 0000000..545e061
--- /dev/null
+++ b/tests/misc/bracket_re.txt
@@ -0,0 +1,61 @@
+
+[x
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
+xxx xxx xxx xxx xxx xxx xxx xxx
diff --git a/tests/misc/code-first-line.html b/tests/misc/code-first-line.html
new file mode 100644
index 0000000..1fb0b7c
--- /dev/null
+++ b/tests/misc/code-first-line.html
@@ -0,0 +1,2 @@
+<pre><code>print "This is a code block."
+</code></pre> \ No newline at end of file
diff --git a/tests/misc/code-first-line.txt b/tests/misc/code-first-line.txt
new file mode 100644
index 0000000..952614d
--- /dev/null
+++ b/tests/misc/code-first-line.txt
@@ -0,0 +1 @@
+ print "This is a code block."
diff --git a/tests/misc/comments.html b/tests/misc/comments.html
new file mode 100644
index 0000000..005a755
--- /dev/null
+++ b/tests/misc/comments.html
@@ -0,0 +1,5 @@
+<p>X&lt;0</p>
+<p>X&gt;0</p>
+<!-- A comment -->
+
+<div>as if</div> \ No newline at end of file
diff --git a/tests/misc/comments.txt b/tests/misc/comments.txt
new file mode 100644
index 0000000..68302b0
--- /dev/null
+++ b/tests/misc/comments.txt
@@ -0,0 +1,7 @@
+X<0
+
+X>0
+
+<!-- A comment -->
+
+<div>as if</div>
diff --git a/tests/misc/div.html b/tests/misc/div.html
new file mode 100644
index 0000000..7b68854
--- /dev/null
+++ b/tests/misc/div.html
@@ -0,0 +1,5 @@
+<div id="sidebar">
+
+ _foo_
+
+</div> \ No newline at end of file
diff --git a/tests/misc/div.txt b/tests/misc/div.txt
new file mode 100644
index 0000000..ca87745
--- /dev/null
+++ b/tests/misc/div.txt
@@ -0,0 +1,5 @@
+<div id="sidebar">
+
+ _foo_
+
+</div>
diff --git a/tests/misc/em-around-links.html b/tests/misc/em-around-links.html
new file mode 100644
index 0000000..fafac28
--- /dev/null
+++ b/tests/misc/em-around-links.html
@@ -0,0 +1,13 @@
+<h1>Title</h1>
+<ul>
+<li><em><a href="http://www.freewisdom.org/projects/python-markdown/">Python in Markdown</a> by some
+ great folks</em> - This <em>does</em> work as expected.</li>
+<li><em><a href="http://www.freewisdom.org/projects/python-markdown/">Python in Markdown</a> by some
+ great folks</em> - This <em>does</em> work as expected.</li>
+<li><a href="http://www.freewisdom.org/projects/python-markdown/"><em>Python in Markdown</em></a> by some
+ great folks - This <em>does</em> work as expected.</li>
+<li><a href="http://www.freewisdom.org/projects/python-markdown/"><em>Python in Markdown</em></a> <em>by some
+ great folks</em> - This <em>does</em> work as expected.</li>
+</ul>
+<p><em><a href="http://www.freewisdom.org/projects/python-markdown/">Python in Markdown</a> by some
+great folks</em> - This <em>does</em> work as expected.</p> \ No newline at end of file
diff --git a/tests/misc/em-around-links.txt b/tests/misc/em-around-links.txt
new file mode 100644
index 0000000..5b15be4
--- /dev/null
+++ b/tests/misc/em-around-links.txt
@@ -0,0 +1,14 @@
+# Title
+
+ - *[Python in Markdown](http://www.freewisdom.org/projects/python-markdown/) by some
+ great folks* - This *does* work as expected.
+ - _[Python in Markdown](http://www.freewisdom.org/projects/python-markdown/) by some
+ great folks_ - This *does* work as expected.
+ - [_Python in Markdown_](http://www.freewisdom.org/projects/python-markdown/) by some
+ great folks - This *does* work as expected.
+ - [_Python in Markdown_](http://www.freewisdom.org/projects/python-markdown/) _by some
+ great folks_ - This *does* work as expected.
+
+_[Python in Markdown](http://www.freewisdom.org/projects/python-markdown/) by some
+great folks_ - This *does* work as expected.
+
diff --git a/tests/misc/em_strong.html b/tests/misc/em_strong.html
new file mode 100644
index 0000000..75c92d8
--- /dev/null
+++ b/tests/misc/em_strong.html
@@ -0,0 +1,10 @@
+<p>One asterisk: *</p>
+<p>One underscore: _</p>
+<p>Two asterisks: **</p>
+<p>With spaces: * *</p>
+<p>Two underscores __</p>
+<p>with spaces: _ _</p>
+<p>three asterisks: ***</p>
+<p>with spaces: * * *</p>
+<p>three underscores: ___</p>
+<p>with spaces: _ _ _</p> \ No newline at end of file
diff --git a/tests/misc/em_strong.txt b/tests/misc/em_strong.txt
new file mode 100644
index 0000000..d0774ad
--- /dev/null
+++ b/tests/misc/em_strong.txt
@@ -0,0 +1,20 @@
+One asterisk: *
+
+One underscore: _
+
+Two asterisks: **
+
+With spaces: * *
+
+Two underscores __
+
+with spaces: _ _
+
+three asterisks: ***
+
+with spaces: * * *
+
+three underscores: ___
+
+with spaces: _ _ _
+
diff --git a/tests/misc/email.html b/tests/misc/email.html
new file mode 100644
index 0000000..0d033bb
--- /dev/null
+++ b/tests/misc/email.html
@@ -0,0 +1,2 @@
+<p>asdfasdfadsfasd <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#121;&#117;&#114;&#105;&#64;&#102;&#114;&#101;&#101;&#119;&#105;&#115;&#100;&#111;&#109;&#46;&#111;&#114;&#103;">&#121;&#117;&#114;&#105;&#64;&#102;&#114;&#101;&#101;&#119;&#105;&#115;&#100;&#111;&#109;&#46;&#111;&#114;&#103;</a> or you can say
+instead <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#121;&#117;&#114;&#105;&#64;&#102;&#114;&#101;&#101;&#119;&#105;&#115;&#100;&#111;&#109;&#46;&#111;&#114;&#103;">&#121;&#117;&#114;&#105;&#64;&#102;&#114;&#101;&#101;&#119;&#105;&#115;&#100;&#111;&#109;&#46;&#111;&#114;&#103;</a></p> \ No newline at end of file
diff --git a/tests/misc/email.txt b/tests/misc/email.txt
new file mode 100644
index 0000000..ece8801
--- /dev/null
+++ b/tests/misc/email.txt
@@ -0,0 +1,3 @@
+
+asdfasdfadsfasd <yuri@freewisdom.org> or you can say
+instead <mailto:yuri@freewisdom.org>
diff --git a/tests/misc/funky-list.html b/tests/misc/funky-list.html
new file mode 100644
index 0000000..313db8f
--- /dev/null
+++ b/tests/misc/funky-list.html
@@ -0,0 +1,11 @@
+<ol>
+<li>this starts a list <em>with</em> numbers</li>
+<li>this will show as number "2"</li>
+<li>this will show as number "3."</li>
+<li>any number, +, -, or * will keep the list going.</li>
+</ol>
+<p>aaaaaaaaaaaaaaa</p>
+<ul>
+<li>now a normal list</li>
+<li>and more</li>
+</ul> \ No newline at end of file
diff --git a/tests/misc/funky-list.txt b/tests/misc/funky-list.txt
new file mode 100644
index 0000000..48ecd60
--- /dev/null
+++ b/tests/misc/funky-list.txt
@@ -0,0 +1,9 @@
+1. this starts a list *with* numbers
++ this will show as number "2"
+* this will show as number "3."
+9. any number, +, -, or * will keep the list going.
+
+aaaaaaaaaaaaaaa
+
+- now a normal list
+- and more
diff --git a/tests/misc/h1.html b/tests/misc/h1.html
new file mode 100644
index 0000000..fbf9b4d
--- /dev/null
+++ b/tests/misc/h1.html
@@ -0,0 +1,3 @@
+<h2>Header</h2>
+<h1>Header 2</h1>
+<h3>H3</h3> \ No newline at end of file
diff --git a/tests/misc/h1.txt b/tests/misc/h1.txt
new file mode 100644
index 0000000..0a1c8f9
--- /dev/null
+++ b/tests/misc/h1.txt
@@ -0,0 +1,7 @@
+Header
+------
+
+Header 2
+========
+
+### H3
diff --git a/tests/misc/hash.html b/tests/misc/hash.html
new file mode 100644
index 0000000..1865994
--- /dev/null
+++ b/tests/misc/hash.html
@@ -0,0 +1,11 @@
+<p>a</p>
+<pre>
+#!/usr/bin/python
+hello</pre>
+
+<p>a</p>
+<pre>
+!/usr/bin/python
+hello</pre>
+
+<p>a</p> \ No newline at end of file
diff --git a/tests/misc/hash.txt b/tests/misc/hash.txt
new file mode 100644
index 0000000..634758d
--- /dev/null
+++ b/tests/misc/hash.txt
@@ -0,0 +1,13 @@
+a
+
+<pre>
+#!/usr/bin/python
+hello</pre>
+
+a
+
+<pre>
+!/usr/bin/python
+hello</pre>
+
+a
diff --git a/tests/misc/headers.html b/tests/misc/headers.html
new file mode 100644
index 0000000..2a737e2
--- /dev/null
+++ b/tests/misc/headers.html
@@ -0,0 +1,10 @@
+<h3>Hello world</h3>
+<p>Line 2
+Line 3</p>
+<h1>[Markdown][5]</h1>
+<h1><a href="http://some.link.com/">Markdown</a></h1>
+<h1>[5]: http://foo.com/</h1>
+<h1>Issue #1: Markdown</h1>
+<p>Text</p>
+<h1>Header</h1>
+<p>Some other text</p> \ No newline at end of file
diff --git a/tests/misc/headers.txt b/tests/misc/headers.txt
new file mode 100644
index 0000000..db114ed
--- /dev/null
+++ b/tests/misc/headers.txt
@@ -0,0 +1,15 @@
+### Hello world
+Line 2
+Line 3
+
+# [Markdown][5]
+
+# [Markdown](http://some.link.com/)
+
+# [5]: http://foo.com/
+
+# Issue #1: Markdown
+
+Text
+# Header
+Some other text
diff --git a/tests/misc/hline.html b/tests/misc/hline.html
new file mode 100644
index 0000000..b18a311
--- /dev/null
+++ b/tests/misc/hline.html
@@ -0,0 +1,2 @@
+<h1>Header</h1>
+<p>Next line</p> \ No newline at end of file
diff --git a/tests/misc/hline.txt b/tests/misc/hline.txt
new file mode 100644
index 0000000..e39b7a2
--- /dev/null
+++ b/tests/misc/hline.txt
@@ -0,0 +1,5 @@
+
+#Header
+Next line
+
+
diff --git a/tests/misc/html-comments.html b/tests/misc/html-comments.html
new file mode 100644
index 0000000..7b36246
--- /dev/null
+++ b/tests/misc/html-comments.html
@@ -0,0 +1,2 @@
+<p>Here is HTML <!-- **comment** -->
+and once more <p><!--comment--></p></p> \ No newline at end of file
diff --git a/tests/misc/html-comments.txt b/tests/misc/html-comments.txt
new file mode 100644
index 0000000..cac4da5
--- /dev/null
+++ b/tests/misc/html-comments.txt
@@ -0,0 +1,2 @@
+Here is HTML <!-- **comment** -->
+and once more <p><!--comment--></p>
diff --git a/tests/misc/html.html b/tests/misc/html.html
new file mode 100644
index 0000000..cd6d4af
--- /dev/null
+++ b/tests/misc/html.html
@@ -0,0 +1,13 @@
+<h1>Block level html</h1>
+
+<p>Some inline <b>stuff<b>.<br />
+</p>
+<p>Now some <arbitrary>arbitrary tags</arbitrary>.</p>
+<div>More block level html.</div>
+
+<div class="foo bar" title="with 'quoted' text." valueless_attr weirdness="<i>foo</i>">
+Html with various attributes.
+</div>
+
+<p>And of course <script>blah</script>.</p>
+<p><a href="script&gt;stuff&lt;/script">this <script>link</a></p> \ No newline at end of file
diff --git a/tests/misc/html.txt b/tests/misc/html.txt
new file mode 100644
index 0000000..c08fe1d
--- /dev/null
+++ b/tests/misc/html.txt
@@ -0,0 +1,17 @@
+
+<h1>Block level html</h1>
+
+Some inline <b>stuff<b>.
+
+Now some <arbitrary>arbitrary tags</arbitrary>.
+
+<div>More block level html.</div>
+
+<div class="foo bar" title="with 'quoted' text." valueless_attr weirdness="<i>foo</i>">
+Html with various attributes.
+</div>
+
+And of course <script>blah</script>.
+
+[this <script>link](<script>stuff</script>)
+
diff --git a/tests/misc/image-2.html b/tests/misc/image-2.html
new file mode 100644
index 0000000..9343d29
--- /dev/null
+++ b/tests/misc/image-2.html
@@ -0,0 +1,2 @@
+<p><a href="http://src.com/"><em>link!</em></a></p>
+<p><em><a href="http://www.freewisdom.org">link</a></em></p> \ No newline at end of file
diff --git a/tests/misc/image-2.txt b/tests/misc/image-2.txt
new file mode 100644
index 0000000..6228383
--- /dev/null
+++ b/tests/misc/image-2.txt
@@ -0,0 +1,3 @@
+[*link!*](http://src.com/)
+
+*[link](http://www.freewisdom.org)*
diff --git a/tests/misc/image.html b/tests/misc/image.html
new file mode 100644
index 0000000..16be2d5
--- /dev/null
+++ b/tests/misc/image.html
@@ -0,0 +1 @@
+<p><img alt="Poster" src="http://humane_man.jpg" title="The most humane man." /></p> \ No newline at end of file
diff --git a/tests/misc/image.txt b/tests/misc/image.txt
new file mode 100644
index 0000000..5553bd4
--- /dev/null
+++ b/tests/misc/image.txt
@@ -0,0 +1,2 @@
+
+![Poster](http://humane_man.jpg "The most humane man.")
diff --git a/tests/misc/image_in_links.html b/tests/misc/image_in_links.html
new file mode 100644
index 0000000..5a8cdc3
--- /dev/null
+++ b/tests/misc/image_in_links.html
@@ -0,0 +1 @@
+<p><a href="path/to/image.png"><img alt="altname" src="path/to/img_thumb.png" /></a></p> \ No newline at end of file
diff --git a/tests/misc/image_in_links.txt b/tests/misc/image_in_links.txt
new file mode 100644
index 0000000..6d739e6
--- /dev/null
+++ b/tests/misc/image_in_links.txt
@@ -0,0 +1,3 @@
+
+
+[![altname](path/to/img_thumb.png)](path/to/image.png)
diff --git a/tests/misc/inside_html.html b/tests/misc/inside_html.html
new file mode 100644
index 0000000..6343dd9
--- /dev/null
+++ b/tests/misc/inside_html.html
@@ -0,0 +1 @@
+<p><a href="stuff"> <strong>ok</strong>? </a></p> \ No newline at end of file
diff --git a/tests/misc/inside_html.txt b/tests/misc/inside_html.txt
new file mode 100644
index 0000000..4f068bf
--- /dev/null
+++ b/tests/misc/inside_html.txt
@@ -0,0 +1 @@
+<a href="stuff"> __ok__? </a>
diff --git a/tests/misc/japanese.html b/tests/misc/japanese.html
new file mode 100644
index 0000000..930891b
--- /dev/null
+++ b/tests/misc/japanese.html
@@ -0,0 +1,11 @@
+<h1>パイソン (Python)</h1>
+<p><strong>Python</strong>(パイソン)は、<a href="http://en.wikipedia.org/wiki/Guido_van_Rossum">Guido van Rossum</a> によって作られたオープンソースのオブジェクト指向スクリプト言語。<a href="http://ja.wikipedia.org/wiki/Perl">Perl</a>とともに欧米で広く普及している。イギリスのテレビ局 BBC が製作したコメディ番組『空飛ぶモンティ・パイソン』にちなんで名付けられた。 (Pythonには、爬虫類のニシキヘビの意味があり、Python言語のマスコットやアイコンとして使われることがある。)</p>
+<h2>概要</h2>
+<p>プログラミング言語 Python は初心者から専門家まで幅広いユーザ層を獲得している。利用目的は汎用で、方向性としてはJavaに近い。ただし、最初からネットワーク利用をメインとして考えられているJavaよりセキュリティについてはやや寛大である。多くのプラットフォームをサポートしており(⇒<a href="#somelink">動作するプラットフォーム</a>)、豊富なライブラリがあることから、産業界でも利用が増えつつある。また、Pythonは純粋なプログラミング言語のほかにも、多くの異なる言語で書かれたモジュールをまとめる糊言語のひとつとして位置づけることができる。実際Pythonは多くの商用アプリケーションでスクリプト言語として採用されている(⇒Pythonを使っている製品あるいはソフトウェアの一覧)。豊富なドキュメントをもち、Unicodeによる文字列操作をサポートしており、日本語処理も標準で可能である。</p>
+<p>Python は基本的にインタプリタ上で実行されることを念頭において設計されており、以下のような特徴をもっている:</p>
+<ul>
+<li>動的な型付け。</li>
+<li>オブジェクトのメンバに対するアクセスが制限されていない。(属性や専用のメソッドフックを実装することによって制限は可能。)</li>
+<li>モジュール、クラス、オブジェクト等の言語の要素が内部からアクセス可能であり、リフレクションを利用した記述が可能。</li>
+</ul>
+<p>また、Pythonではインデントによりブロックを指定する構文を採用している(⇒<a href="#jklj">オフサイドルール</a>)。この構文はPythonに慣れたユーザからは称賛をもって受け入れられているが、他の言語のユーザからは批判も多い。このほかにも、大きすぎる実行ファイルや、Javaに比べて遅い処理速度などが欠点として指摘されている。しかし <strong>プロトタイピング</strong> の際にはこれらの点はさして問題とはならないことから、研究開発部門では頻繁に利用されている。</p> \ No newline at end of file
diff --git a/tests/misc/japanese.txt b/tests/misc/japanese.txt
new file mode 100644
index 0000000..b2bd38c
--- /dev/null
+++ b/tests/misc/japanese.txt
@@ -0,0 +1,15 @@
+パイソン (Python)
+=======
+
+**Python**(パイソン)は、[Guido van Rossum](http://en.wikipedia.org/wiki/Guido_van_Rossum) によって作られたオープンソースのオブジェクト指向スクリプト言語。[Perl](http://ja.wikipedia.org/wiki/Perl)とともに欧米で広く普及している。イギリスのテレビ局 BBC が製作したコメディ番組『空飛ぶモンティ・パイソン』にちなんで名付けられた。 (Pythonには、爬虫類のニシキヘビの意味があり、Python言語のマスコットやアイコンとして使われることがある。)
+
+## 概要
+プログラミング言語 Python は初心者から専門家まで幅広いユーザ層を獲得している。利用目的は汎用で、方向性としてはJavaに近い。ただし、最初からネットワーク利用をメインとして考えられているJavaよりセキュリティについてはやや寛大である。多くのプラットフォームをサポートしており(⇒[動作するプラットフォーム](#somelink))、豊富なライブラリがあることから、産業界でも利用が増えつつある。また、Pythonは純粋なプログラミング言語のほかにも、多くの異なる言語で書かれたモジュールをまとめる糊言語のひとつとして位置づけることができる。実際Pythonは多くの商用アプリケーションでスクリプト言語として採用されている(⇒Pythonを使っている製品あるいはソフトウェアの一覧)。豊富なドキュメントをもち、Unicodeによる文字列操作をサポートしており、日本語処理も標準で可能である。
+
+Python は基本的にインタプリタ上で実行されることを念頭において設計されており、以下のような特徴をもっている:
+
+* 動的な型付け。
+* オブジェクトのメンバに対するアクセスが制限されていない。(属性や専用のメソッドフックを実装することによって制限は可能。)
+* モジュール、クラス、オブジェクト等の言語の要素が内部からアクセス可能であり、リフレクションを利用した記述が可能。
+
+また、Pythonではインデントによりブロックを指定する構文を採用している(⇒[オフサイドルール](#jklj))。この構文はPythonに慣れたユーザからは称賛をもって受け入れられているが、他の言語のユーザからは批判も多い。このほかにも、大きすぎる実行ファイルや、Javaに比べて遅い処理速度などが欠点として指摘されている。しかし **プロトタイピング** の際にはこれらの点はさして問題とはならないことから、研究開発部門では頻繁に利用されている。
diff --git a/tests/misc/lazy-block-quote.html b/tests/misc/lazy-block-quote.html
new file mode 100644
index 0000000..7a88263
--- /dev/null
+++ b/tests/misc/lazy-block-quote.html
@@ -0,0 +1,6 @@
+<blockquote>
+<p>Line one of lazy block quote.
+Line two of lazy block quote.</p>
+<p>Line one of paragraph two.
+Line two of paragraph two.</p>
+</blockquote> \ No newline at end of file
diff --git a/tests/misc/lazy-block-quote.txt b/tests/misc/lazy-block-quote.txt
new file mode 100644
index 0000000..e7c17ca
--- /dev/null
+++ b/tests/misc/lazy-block-quote.txt
@@ -0,0 +1,5 @@
+> Line one of lazy block quote.
+Line two of lazy block quote.
+
+> Line one of paragraph two.
+Line two of paragraph two.
diff --git a/tests/misc/link-with-parenthesis.html b/tests/misc/link-with-parenthesis.html
new file mode 100644
index 0000000..a56ed8d
--- /dev/null
+++ b/tests/misc/link-with-parenthesis.html
@@ -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> \ No newline at end of file
diff --git a/tests/misc/link-with-parenthesis.txt b/tests/misc/link-with-parenthesis.txt
new file mode 100644
index 0000000..8affc98
--- /dev/null
+++ b/tests/misc/link-with-parenthesis.txt
@@ -0,0 +1 @@
+[ZIP archives](http://en.wikipedia.org/wiki/ZIP_(file_format) "ZIP (file format) - Wikipedia, the free encyclopedia")
diff --git a/tests/misc/lists.html b/tests/misc/lists.html
new file mode 100644
index 0000000..bf4a02b
--- /dev/null
+++ b/tests/misc/lists.html
@@ -0,0 +1,36 @@
+<ul>
+<li>A multi-paragraph list,
+unindented.</li>
+</ul>
+<p>Simple tight list</p>
+<ul>
+<li>Uno</li>
+<li>Due</li>
+<li>Tri</li>
+</ul>
+<p>A singleton tight list:</p>
+<ul>
+<li>Uno</li>
+</ul>
+<p>A lose list:</p>
+<ul>
+<li>
+<p>One</p>
+</li>
+<li>
+<p>Two</p>
+</li>
+<li>
+<p>Three</p>
+</li>
+</ul>
+<p>A lose list with paragraphs</p>
+<ul>
+<li>
+<p>One one one one</p>
+<p>one one one one</p>
+</li>
+<li>
+<p>Two two two two</p>
+</li>
+</ul> \ No newline at end of file
diff --git a/tests/misc/lists.txt b/tests/misc/lists.txt
new file mode 100644
index 0000000..6db0dc3
--- /dev/null
+++ b/tests/misc/lists.txt
@@ -0,0 +1,31 @@
+
+* A multi-paragraph list,
+unindented.
+
+
+
+Simple tight list
+
+* Uno
+* Due
+* Tri
+
+A singleton tight list:
+
+* Uno
+
+A lose list:
+
+* One
+
+* Two
+
+* Three
+
+A lose list with paragraphs
+
+* One one one one
+
+ one one one one
+
+* Two two two two
diff --git a/tests/misc/lists2.html b/tests/misc/lists2.html
new file mode 100644
index 0000000..991395b
--- /dev/null
+++ b/tests/misc/lists2.html
@@ -0,0 +1,5 @@
+<ul>
+<li>blah blah blah
+sdf asdf asdf asdf asdf
+asda asdf asdfasd</li>
+</ul> \ No newline at end of file
diff --git a/tests/misc/lists2.txt b/tests/misc/lists2.txt
new file mode 100644
index 0000000..cbff761
--- /dev/null
+++ b/tests/misc/lists2.txt
@@ -0,0 +1,3 @@
+* blah blah blah
+sdf asdf asdf asdf asdf
+asda asdf asdfasd
diff --git a/tests/misc/lists3.html b/tests/misc/lists3.html
new file mode 100644
index 0000000..991395b
--- /dev/null
+++ b/tests/misc/lists3.html
@@ -0,0 +1,5 @@
+<ul>
+<li>blah blah blah
+sdf asdf asdf asdf asdf
+asda asdf asdfasd</li>
+</ul> \ No newline at end of file
diff --git a/tests/misc/lists3.txt b/tests/misc/lists3.txt
new file mode 100644
index 0000000..6b45bd4
--- /dev/null
+++ b/tests/misc/lists3.txt
@@ -0,0 +1,3 @@
+* blah blah blah
+ sdf asdf asdf asdf asdf
+ asda asdf asdfasd
diff --git a/tests/misc/lists4.html b/tests/misc/lists4.html
new file mode 100644
index 0000000..4b6b32c
--- /dev/null
+++ b/tests/misc/lists4.html
@@ -0,0 +1,8 @@
+<ul>
+<li>item1</li>
+<li>item2<ol>
+<li>Number 1</li>
+<li>Number 2</li>
+</ol>
+</li>
+</ul> \ No newline at end of file
diff --git a/tests/misc/lists4.txt b/tests/misc/lists4.txt
new file mode 100644
index 0000000..a21493d
--- /dev/null
+++ b/tests/misc/lists4.txt
@@ -0,0 +1,5 @@
+
+* item1
+* item2
+ 1. Number 1
+ 2. Number 2
diff --git a/tests/misc/lists5.html b/tests/misc/lists5.html
new file mode 100644
index 0000000..c3dbda4
--- /dev/null
+++ b/tests/misc/lists5.html
@@ -0,0 +1,14 @@
+<blockquote>
+<p>This is a test of a block quote
+With just two lines</p>
+</blockquote>
+<p>A paragraph</p>
+<blockquote>
+<p>This is a more difficult case
+With a list item inside the quote</p>
+<ul>
+<li>Alpha</li>
+<li>Beta
+Etc.</li>
+</ul>
+</blockquote> \ No newline at end of file
diff --git a/tests/misc/lists5.txt b/tests/misc/lists5.txt
new file mode 100644
index 0000000..566e0f1
--- /dev/null
+++ b/tests/misc/lists5.txt
@@ -0,0 +1,12 @@
+> This is a test of a block quote
+> With just two lines
+
+A paragraph
+
+> This is a more difficult case
+> With a list item inside the quote
+>
+> * Alpha
+> * Beta
+> Etc.
+
diff --git a/tests/misc/lists6.html b/tests/misc/lists6.html
new file mode 100644
index 0000000..24aad38
--- /dev/null
+++ b/tests/misc/lists6.html
@@ -0,0 +1,18 @@
+<p>Test five or more spaces as start of list:</p>
+<ul>
+<li>five spaces</li>
+</ul>
+<p>not first item:</p>
+<ul>
+<li>one space</li>
+<li>five spaces</li>
+</ul>
+<p>loose list:</p>
+<ul>
+<li>
+<p>one space</p>
+</li>
+<li>
+<p>five spaces</p>
+</li>
+</ul> \ No newline at end of file
diff --git a/tests/misc/lists6.txt b/tests/misc/lists6.txt
new file mode 100644
index 0000000..f12788f
--- /dev/null
+++ b/tests/misc/lists6.txt
@@ -0,0 +1,14 @@
+Test five or more spaces as start of list:
+
+* five spaces
+
+not first item:
+
+* one space
+* five spaces
+
+loose list:
+
+* one space
+
+* five spaces
diff --git a/tests/misc/markup-inside-p.html b/tests/misc/markup-inside-p.html
new file mode 100644
index 0000000..1b6b420
--- /dev/null
+++ b/tests/misc/markup-inside-p.html
@@ -0,0 +1,21 @@
+<p>
+
+_foo_
+
+</p>
+
+<p>
+_foo_
+</p>
+
+<p>_foo_</p>
+
+<p>
+
+_foo_
+</p>
+
+<p>
+_foo_
+
+</p> \ No newline at end of file
diff --git a/tests/misc/markup-inside-p.txt b/tests/misc/markup-inside-p.txt
new file mode 100644
index 0000000..ab7dd0f
--- /dev/null
+++ b/tests/misc/markup-inside-p.txt
@@ -0,0 +1,21 @@
+<p>
+
+_foo_
+
+</p>
+
+<p>
+_foo_
+</p>
+
+<p>_foo_</p>
+
+<p>
+
+_foo_
+</p>
+
+<p>
+_foo_
+
+</p>
diff --git a/tests/misc/mismatched-tags.html b/tests/misc/mismatched-tags.html
new file mode 100644
index 0000000..ec087e1
--- /dev/null
+++ b/tests/misc/mismatched-tags.html
@@ -0,0 +1,11 @@
+<p>Some text</p>
+
+<div>some more text</div>
+
+<p>and a bit more</p>
+<p>And this output</p>
+
+<p><em>Compatible with PHP Markdown Extra 1.2.2 and Markdown.pl1.0.2b8:</em></p>
+<!-- comment --><p><div>text</div><br /></p><br />
+
+<p>Should be in p</p> \ No newline at end of file
diff --git a/tests/misc/mismatched-tags.txt b/tests/misc/mismatched-tags.txt
new file mode 100644
index 0000000..8e6a52f
--- /dev/null
+++ b/tests/misc/mismatched-tags.txt
@@ -0,0 +1,9 @@
+<p>Some text</p><div>some more text</div>
+
+and a bit more
+
+<p>And this output</p> *Compatible with PHP Markdown Extra 1.2.2 and Markdown.pl1.0.2b8:*
+
+<!-- comment --><p><div>text</div><br /></p><br />
+
+Should be in p
diff --git a/tests/misc/missing-link-def.html b/tests/misc/missing-link-def.html
new file mode 100644
index 0000000..e04b5eb
--- /dev/null
+++ b/tests/misc/missing-link-def.html
@@ -0,0 +1 @@
+<p>This is a [missing link][empty] and a <a href="http://example.com">valid</a> and [missing][again].</p> \ No newline at end of file
diff --git a/tests/misc/missing-link-def.txt b/tests/misc/missing-link-def.txt
new file mode 100644
index 0000000..44bc656
--- /dev/null
+++ b/tests/misc/missing-link-def.txt
@@ -0,0 +1,4 @@
+This is a [missing link][empty] and a [valid][link] and [missing][again].
+
+[link]: http://example.com
+
diff --git a/tests/misc/more_comments.html b/tests/misc/more_comments.html
new file mode 100644
index 0000000..97074d5
--- /dev/null
+++ b/tests/misc/more_comments.html
@@ -0,0 +1,7 @@
+<!--asd@asdfd.com>
+
+<!asd@asdfd.com>
+
+<asd!@asdfd.com>
+
+<p>Test</p> \ No newline at end of file
diff --git a/tests/misc/more_comments.txt b/tests/misc/more_comments.txt
new file mode 100644
index 0000000..0397f9c
--- /dev/null
+++ b/tests/misc/more_comments.txt
@@ -0,0 +1,9 @@
+<!--asd@asdfd.com>
+
+
+<!asd@asdfd.com>
+
+
+<asd!@asdfd.com>
+
+Test
diff --git a/tests/misc/multi-line-tags.html b/tests/misc/multi-line-tags.html
new file mode 100644
index 0000000..784c1dd
--- /dev/null
+++ b/tests/misc/multi-line-tags.html
@@ -0,0 +1,5 @@
+<div>
+
+asdf asdfasd
+
+</div> \ No newline at end of file
diff --git a/tests/misc/multi-line-tags.txt b/tests/misc/multi-line-tags.txt
new file mode 100644
index 0000000..4ea3b02
--- /dev/null
+++ b/tests/misc/multi-line-tags.txt
@@ -0,0 +1,6 @@
+
+<div>
+
+asdf asdfasd
+
+</div>
diff --git a/tests/misc/multi-paragraph-block-quote.html b/tests/misc/multi-paragraph-block-quote.html
new file mode 100644
index 0000000..f01b5e4
--- /dev/null
+++ b/tests/misc/multi-paragraph-block-quote.html
@@ -0,0 +1,6 @@
+<blockquote>
+<p>This is line one of paragraph one
+This is line two of paragraph one</p>
+<p>This is line one of paragraph two</p>
+<p>This is another blockquote.</p>
+</blockquote> \ No newline at end of file
diff --git a/tests/misc/multi-paragraph-block-quote.txt b/tests/misc/multi-paragraph-block-quote.txt
new file mode 100644
index 0000000..f8a986f
--- /dev/null
+++ b/tests/misc/multi-paragraph-block-quote.txt
@@ -0,0 +1,8 @@
+> This is line one of paragraph one
+> This is line two of paragraph one
+
+> This is line one of paragraph two
+
+
+
+> This is another blockquote.
diff --git a/tests/misc/multi-test.html b/tests/misc/multi-test.html
new file mode 100644
index 0000000..2c8fe9e
--- /dev/null
+++ b/tests/misc/multi-test.html
@@ -0,0 +1,20 @@
+<h1 id="inthebeginning">Header </h1>
+<p>Now, let's try something <em class="special">inline</em>, to see if it works</p>
+<p>Blah blah blah <a href="http://www.slashdot.org">http://www.slashdot.org</a></p>
+<ul>
+<li>Basic list</li>
+<li>Basic list 2</li>
+</ul>
+<p>addss</p>
+<ul>
+<li>Lazy list</li>
+</ul>
+<p>An <a href="http://example.com" title="Title">example</a> (oops)</p>
+<p>Now, let's use a footnote[^1]. Not bad, eh?
+Let's continue.</p>
+<p>[^1]: Here is the text of the footnote
+ continued on several lines.
+ some more of the footnote, etc.</p>
+<pre><code>Actually, another paragraph too.
+</code></pre>
+<p>And then there is a little bit of text.</p> \ No newline at end of file
diff --git a/tests/misc/multi-test.txt b/tests/misc/multi-test.txt
new file mode 100644
index 0000000..c4ab1c1
--- /dev/null
+++ b/tests/misc/multi-test.txt
@@ -0,0 +1,32 @@
+
+# Header {@id=inthebeginning}
+
+Now, let's try something *inline{@class=special}*, to see if it works
+
+
+Blah blah blah <http://www.slashdot.org>
+
+* Basic list
+* Basic list 2
+
+addss
+
+ * Lazy list
+
+An [example][ref] (oops)
+
+ [ref]: http://example.com "Title"
+
+
+Now, let's use a footnote[^1]. Not bad, eh?
+Let's continue.
+
+ [^1]: Here is the text of the footnote
+ continued on several lines.
+ some more of the footnote, etc.
+
+ Actually, another paragraph too.
+
+And then there is a little bit of text.
+
+
diff --git a/tests/misc/multiline-comments.html b/tests/misc/multiline-comments.html
new file mode 100644
index 0000000..12f8cb5
--- /dev/null
+++ b/tests/misc/multiline-comments.html
@@ -0,0 +1,17 @@
+<!--
+
+foo
+
+-->
+
+<p>
+
+foo
+
+</p>
+
+<div>
+
+foo
+
+</div> \ No newline at end of file
diff --git a/tests/misc/multiline-comments.txt b/tests/misc/multiline-comments.txt
new file mode 100644
index 0000000..71bc418
--- /dev/null
+++ b/tests/misc/multiline-comments.txt
@@ -0,0 +1,18 @@
+<!--
+
+foo
+
+-->
+
+<p>
+
+foo
+
+</p>
+
+
+<div>
+
+foo
+
+</div>
diff --git a/tests/misc/nested-lists.html b/tests/misc/nested-lists.html
new file mode 100644
index 0000000..bb73784
--- /dev/null
+++ b/tests/misc/nested-lists.html
@@ -0,0 +1,39 @@
+<ul>
+<li>
+<p>item 1</p>
+<p>paragraph 2</p>
+</li>
+<li>
+<p>item 2</p>
+<ul>
+<li>item 2-1</li>
+<li>
+<p>item 2-2</p>
+<ul>
+<li>item 2-2-1</li>
+</ul>
+</li>
+<li>
+<p>item 2-3</p>
+<ul>
+<li>item 2-3-1</li>
+</ul>
+</li>
+</ul>
+</li>
+<li>
+<p>item 3</p>
+</li>
+</ul>
+<p>plain text</p>
+<ul>
+<li>item 1<ul>
+<li>item 1-1</li>
+<li>item 1-2<ul>
+<li>item 1-2-1</li>
+</ul>
+</li>
+</ul>
+</li>
+<li>item 2</li>
+</ul> \ No newline at end of file
diff --git a/tests/misc/nested-lists.txt b/tests/misc/nested-lists.txt
new file mode 100644
index 0000000..38aae15
--- /dev/null
+++ b/tests/misc/nested-lists.txt
@@ -0,0 +1,24 @@
+* item 1
+
+ paragraph 2
+
+* item 2
+
+ * item 2-1
+ * item 2-2
+
+ * item 2-2-1
+
+ * item 2-3
+
+ * item 2-3-1
+
+* item 3
+
+plain text
+
+* item 1
+ * item 1-1
+ * item 1-2
+ * item 1-2-1
+* item 2
diff --git a/tests/misc/nested-patterns.html b/tests/misc/nested-patterns.html
new file mode 100644
index 0000000..b90d46d
--- /dev/null
+++ b/tests/misc/nested-patterns.html
@@ -0,0 +1,7 @@
+<p><strong><em><a href="http://www.freewisdom.org">link</a></em></strong>
+<strong><em><a href="http://www.freewisdom.org">link</a></em></strong>
+<strong><a href="http://www.freewisdom.org"><em>link</em></a></strong>
+<strong><a href="http://www.freewisdom.org"><em>link</em></a></strong>
+<strong><a href="http://www.freewisdom.org"><em>link</em></a></strong>
+<strong><a href="http://www.freewisdom.org"><em>link</em></a></strong>
+<a href="http://www.freewisdom.org"><strong><em>link</em></strong></a></p> \ No newline at end of file
diff --git a/tests/misc/nested-patterns.txt b/tests/misc/nested-patterns.txt
new file mode 100644
index 0000000..3f5dc3e
--- /dev/null
+++ b/tests/misc/nested-patterns.txt
@@ -0,0 +1,7 @@
+___[link](http://www.freewisdom.org)___
+***[link](http://www.freewisdom.org)***
+**[*link*](http://www.freewisdom.org)**
+__[_link_](http://www.freewisdom.org)__
+__[*link*](http://www.freewisdom.org)__
+**[_link_](http://www.freewisdom.org)**
+[***link***](http://www.freewisdom.org)
diff --git a/tests/misc/normalize.html b/tests/misc/normalize.html
new file mode 100644
index 0000000..8d05375
--- /dev/null
+++ b/tests/misc/normalize.html
@@ -0,0 +1 @@
+<p><a href="http://www.stuff.com/q?x=1&amp;y=2&lt;&gt;">Link</a></p> \ No newline at end of file
diff --git a/tests/misc/normalize.txt b/tests/misc/normalize.txt
new file mode 100644
index 0000000..fe0cf17
--- /dev/null
+++ b/tests/misc/normalize.txt
@@ -0,0 +1,2 @@
+
+[Link](http://www.stuff.com/q?x=1&y=2<>)
diff --git a/tests/misc/numeric-entity.html b/tests/misc/numeric-entity.html
new file mode 100644
index 0000000..3ad3b7a
--- /dev/null
+++ b/tests/misc/numeric-entity.html
@@ -0,0 +1,2 @@
+<p><a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#117;&#115;&#101;&#114;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;">&#117;&#115;&#101;&#114;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;</a></p>
+<p>This is an entity: &#234; </p> \ No newline at end of file
diff --git a/tests/misc/numeric-entity.txt b/tests/misc/numeric-entity.txt
new file mode 100644
index 0000000..fd2052b
--- /dev/null
+++ b/tests/misc/numeric-entity.txt
@@ -0,0 +1,4 @@
+
+<user@gmail.com>
+
+This is an entity: &#234;
diff --git a/tests/misc/para-with-hr.html b/tests/misc/para-with-hr.html
new file mode 100644
index 0000000..8569fec
--- /dev/null
+++ b/tests/misc/para-with-hr.html
@@ -0,0 +1,3 @@
+<p>Here is a paragraph, followed by a horizontal rule.</p>
+<hr />
+<p>Followed by another paragraph.</p> \ No newline at end of file
diff --git a/tests/misc/para-with-hr.txt b/tests/misc/para-with-hr.txt
new file mode 100644
index 0000000..20735fb
--- /dev/null
+++ b/tests/misc/para-with-hr.txt
@@ -0,0 +1,4 @@
+Here is a paragraph, followed by a horizontal rule.
+***
+Followed by another paragraph.
+
diff --git a/tests/misc/php.html b/tests/misc/php.html
new file mode 100644
index 0000000..8cd4ed5
--- /dev/null
+++ b/tests/misc/php.html
@@ -0,0 +1,11 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+
+<p><b>This should have a p tag</b></p>
+<!--This is a comment -->
+
+<div>This shouldn't</div>
+
+<?php echo "block_level";?>
+
+<p>&lt;?php echo "not_block_level";?&gt;</p> \ No newline at end of file
diff --git a/tests/misc/php.txt b/tests/misc/php.txt
new file mode 100644
index 0000000..ca5be45
--- /dev/null
+++ b/tests/misc/php.txt
@@ -0,0 +1,13 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+
+<b>This should have a p tag</b>
+
+<!--This is a comment -->
+
+<div>This shouldn't</div>
+
+<?php echo "block_level";?>
+
+ <?php echo "not_block_level";?>
+
diff --git a/tests/misc/pre.html b/tests/misc/pre.html
new file mode 100644
index 0000000..a44ae12
--- /dev/null
+++ b/tests/misc/pre.html
@@ -0,0 +1,13 @@
+<pre>
+
+aaa
+
+bbb
+</pre>
+
+<pre>
+* and this is pre-formatted content
+* and it should be printed just like this
+* and not formatted as a list
+
+</pre> \ No newline at end of file
diff --git a/tests/misc/pre.txt b/tests/misc/pre.txt
new file mode 100644
index 0000000..31243b5
--- /dev/null
+++ b/tests/misc/pre.txt
@@ -0,0 +1,14 @@
+<pre>
+
+aaa
+
+bbb
+</pre>
+
+<pre>
+* and this is pre-formatted content
+* and it should be printed just like this
+* and not formatted as a list
+
+</pre>
+
diff --git a/tests/misc/raw_whitespace.html b/tests/misc/raw_whitespace.html
new file mode 100644
index 0000000..7a6f131
--- /dev/null
+++ b/tests/misc/raw_whitespace.html
@@ -0,0 +1,8 @@
+<p>Preserve whitespace in raw html</p>
+<pre>
+class Foo():
+ bar = 'bar'
+
+ def baz(self):
+ print self.bar
+</pre> \ No newline at end of file
diff --git a/tests/misc/raw_whitespace.txt b/tests/misc/raw_whitespace.txt
new file mode 100644
index 0000000..bbc7cec
--- /dev/null
+++ b/tests/misc/raw_whitespace.txt
@@ -0,0 +1,10 @@
+Preserve whitespace in raw html
+
+<pre>
+class Foo():
+ bar = 'bar'
+
+ def baz(self):
+ print self.bar
+</pre>
+
diff --git a/tests/misc/russian.html b/tests/misc/russian.html
new file mode 100644
index 0000000..57c9688
--- /dev/null
+++ b/tests/misc/russian.html
@@ -0,0 +1,6 @@
+<h1>Недвард «Нед» Фландерс</h1>
+<p><strong>Недвард «Нед» Фландерс</strong> (Nedward «Ned» Flanders) — вымышленный персонаж мультсериала «[Симпсоны][]», озвученный Гарри Ширером. Он и его семья живут по соседству от семьи Симпсонов. Набожный христианин, Нед является одним из столпов морали Спрингфилда. В эпизоде «Alone Again, Natura-Diddily» он овдовел, его жена Мод погибла в результате несчастного случая. </p>
+<p>Нед был одним из первых персонажей в мультсериале, который не был членом семьи Симпсонов. Начиная с первых серий, он регулярно появляется в «Симпсонах». Считается, что Нед Фландерс был назван в честь улицы <em>Northeast Flanders St.</em> в <a href="http://www.portland.gov">Портленде</a>, Орегон, родном городе создателя мультсериала Мэтта Грейнинга]]. Надпись на указателе улицы <em>NE Flanders St.</em> хулиганы часто исправляли на <em>NED Flanders St.</em></p>
+<h2>Биография</h2>
+<p>Нед Фландерс родился в Нью-Йорке, его родители были битниками. Его отец в точности похож на взрослого Неда, только он носил козлиную бородку. Их отказ от воспитания Неда и то, что они, в общем-то, были плохими родителями («мы ничего в этом не понимаем и не знаем как начать») привело к тому, что Нед превратился в ужасного сорванца. В конце концов они согласились на экспериментальную восьмимесячную шлепологическую терапию Миннесотского Университета (воспоминания Неда в эпизоде «Hurricane Neddy»), которая научила его подавлять чувство злости. Побочным эфектом терапии стало то, что Нед стал ненавидеть своих родителей (это одна из двух вещей которые ненавидит Фландерс, вторая — отделения почты, чьи длинные очереди, суета и угрюмый персонал раздражают его).</p>
+<p>У Неда есть странная привычка добавлять «дидли», «дадли» и другие бессмысленные слова в свои фразы при разговоре, например: «Hi-diddly-ho, neighbor-ino» («Приветик, соседушка»). Это результат сублимации его злости, вызванной сдерживанием гнева, который не имеет никакого другого выхода.</p> \ No newline at end of file
diff --git a/tests/misc/russian.txt b/tests/misc/russian.txt
new file mode 100644
index 0000000..a742065
--- /dev/null
+++ b/tests/misc/russian.txt
@@ -0,0 +1,15 @@
+Недвард «Нед» Фландерс
+======================
+
+
+**Недвард «Нед» Фландерс** (Nedward «Ned» Flanders) — вымышленный персонаж мультсериала «[Симпсоны][]», озвученный Гарри Ширером. Он и его семья живут по соседству от семьи Симпсонов. Набожный христианин, Нед является одним из столпов морали Спрингфилда. В эпизоде «Alone Again, Natura-Diddily» он овдовел, его жена Мод погибла в результате несчастного случая.
+
+Нед был одним из первых персонажей в мультсериале, который не был членом семьи Симпсонов. Начиная с первых серий, он регулярно появляется в «Симпсонах». Считается, что Нед Фландерс был назван в честь улицы *Northeast Flanders St.* в [Портленде](http://www.portland.gov), Орегон, родном городе создателя мультсериала Мэтта Грейнинга]]. Надпись на указателе улицы *NE Flanders St.* хулиганы часто исправляли на _NED Flanders St._
+
+## Биография
+
+Нед Фландерс родился в Нью-Йорке, его родители были битниками. Его отец в точности похож на взрослого Неда, только он носил козлиную бородку. Их отказ от воспитания Неда и то, что они, в общем-то, были плохими родителями («мы ничего в этом не понимаем и не знаем как начать») привело к тому, что Нед превратился в ужасного сорванца. В конце концов они согласились на экспериментальную восьмимесячную шлепологическую терапию Миннесотского Университета (воспоминания Неда в эпизоде «Hurricane Neddy»), которая научила его подавлять чувство злости. Побочным эфектом терапии стало то, что Нед стал ненавидеть своих родителей (это одна из двух вещей которые ненавидит Фландерс, вторая — отделения почты, чьи длинные очереди, суета и угрюмый персонал раздражают его).
+
+У Неда есть странная привычка добавлять «дидли», «дадли» и другие бессмысленные слова в свои фразы при разговоре, например: «Hi-diddly-ho, neighbor-ino» («Приветик, соседушка»). Это результат сублимации его злости, вызванной сдерживанием гнева, который не имеет никакого другого выхода.
+
+
diff --git a/tests/misc/smart_em.html b/tests/misc/smart_em.html
new file mode 100644
index 0000000..5683b25
--- /dev/null
+++ b/tests/misc/smart_em.html
@@ -0,0 +1,5 @@
+<p><em>emphasis</em></p>
+<p>this_is_not_emphasis</p>
+<p>[<em>punctuation with emphasis</em>]</p>
+<p>[<em>punctuation_with_emphasis</em>]</p>
+<p>[punctuation_without_emphasis]</p> \ No newline at end of file
diff --git a/tests/misc/smart_em.txt b/tests/misc/smart_em.txt
new file mode 100644
index 0000000..3c56842
--- /dev/null
+++ b/tests/misc/smart_em.txt
@@ -0,0 +1,9 @@
+_emphasis_
+
+this_is_not_emphasis
+
+[_punctuation with emphasis_]
+
+[_punctuation_with_emphasis_]
+
+[punctuation_without_emphasis]
diff --git a/tests/misc/some-test.html b/tests/misc/some-test.html
new file mode 100644
index 0000000..a36d1ee
--- /dev/null
+++ b/tests/misc/some-test.html
@@ -0,0 +1,66 @@
+<hr />
+<ul>
+<li>
+<p>as if</p>
+</li>
+<li>
+<p>as if2</p>
+</li>
+</ul>
+<hr />
+<ul>
+<li>
+<p>as if</p>
+</li>
+<li>
+<p>as if2</p>
+</li>
+</ul>
+<hr />
+<ul>
+<li>as if
+ non_code</li>
+<li>as if2</li>
+</ul>
+<p>Markdown</p>
+<ul>
+<li>Python
+ is ok<ul>
+<li>Therefore i am</li>
+</ul>
+</li>
+<li>
+<p>Perl sucks
+ big time</p>
+<ul>
+<li>But that's
+ok</li>
+</ul>
+</li>
+<li>
+<p>Python is
+ok
+ Or not?</p>
+</li>
+</ul>
+<p>Here is a normal paragraph</p>
+<ol>
+<li>Another list
+with a bunch of items</li>
+<li>
+<p>Mostly fruits</p>
+<ol>
+<li>Apple</li>
+<li>Pare</li>
+</ol>
+</li>
+</ol>
+<p>asdfasdfasd</p>
+<pre><code># This is a code example
+import stuff
+
+Another code example
+* Lists and similar stuff
+
+&gt; Should be ignored
+</code></pre> \ No newline at end of file
diff --git a/tests/misc/some-test.txt b/tests/misc/some-test.txt
new file mode 100644
index 0000000..0708817
--- /dev/null
+++ b/tests/misc/some-test.txt
@@ -0,0 +1,57 @@
+----------------------
+
+* as if
+
+* as if2
+
+----------------------
+
+* as if
+
+* as if2
+
+----------------------
+
+* as if
+ non_code
+* as if2
+
+
+
+
+Markdown
+
+* Python
+ is ok
+ * Therefore i am
+
+* Perl sucks
+ big time
+ * But that's
+ ok
+
+* Python is
+ok
+ Or not?
+
+Here is a normal paragraph
+
+1. Another list
+with a bunch of items
+2. Mostly fruits
+
+
+
+ 3. Apple
+ 4. Pare
+
+asdfasdfasd
+
+
+ # This is a code example
+ import stuff
+
+ Another code example
+ * Lists and similar stuff
+
+ > Should be ignored
diff --git a/tests/misc/span.html b/tests/misc/span.html
new file mode 100644
index 0000000..bafcf0f
--- /dev/null
+++ b/tests/misc/span.html
@@ -0,0 +1,6 @@
+<p><span id="someId"> Foo <em>bar</em> Baz </span></p>
+<div><b>*foo*</b></div>
+
+<div id="someId"> Foo *bar* Baz </div>
+
+<p><baza id="someId"> Foo <em>bar</em> Baz </baza></p> \ No newline at end of file
diff --git a/tests/misc/span.txt b/tests/misc/span.txt
new file mode 100644
index 0000000..62bcf9b
--- /dev/null
+++ b/tests/misc/span.txt
@@ -0,0 +1,10 @@
+
+<span id="someId"> Foo *bar* Baz </span>
+
+<div><b>*foo*</b></div>
+
+<div id="someId"> Foo *bar* Baz </div>
+
+<baza id="someId"> Foo *bar* Baz </baza>
+
+
diff --git a/tests/misc/strong-with-underscores.html b/tests/misc/strong-with-underscores.html
new file mode 100644
index 0000000..08e6744
--- /dev/null
+++ b/tests/misc/strong-with-underscores.html
@@ -0,0 +1 @@
+<p><strong>this_is_strong</strong></p> \ No newline at end of file
diff --git a/tests/misc/strong-with-underscores.txt b/tests/misc/strong-with-underscores.txt
new file mode 100644
index 0000000..1a3544f
--- /dev/null
+++ b/tests/misc/strong-with-underscores.txt
@@ -0,0 +1 @@
+__this_is_strong__
diff --git a/tests/misc/stronintags.html b/tests/misc/stronintags.html
new file mode 100644
index 0000000..cf18bd0
--- /dev/null
+++ b/tests/misc/stronintags.html
@@ -0,0 +1,4 @@
+<p>this is a <a href="http://example.com/"><strong>test</strong></a></p>
+<p>this is a second <strong><a href="http://example.com">test</a></strong></p>
+<p>reference <strong>[test][]</strong>
+reference [<strong>test</strong>][]</p> \ No newline at end of file
diff --git a/tests/misc/stronintags.txt b/tests/misc/stronintags.txt
new file mode 100644
index 0000000..01c118f
--- /dev/null
+++ b/tests/misc/stronintags.txt
@@ -0,0 +1,8 @@
+this is a [**test**](http://example.com/)
+
+this is a second **[test](http://example.com)**
+
+reference **[test][]**
+reference [**test**][]
+
+
diff --git a/tests/misc/tabs-in-lists.html b/tests/misc/tabs-in-lists.html
new file mode 100644
index 0000000..fdb7cb6
--- /dev/null
+++ b/tests/misc/tabs-in-lists.html
@@ -0,0 +1,42 @@
+<p>First a list with a tabbed line</p>
+<ul>
+<li>
+<p>A</p>
+</li>
+<li>
+<p>B</p>
+</li>
+</ul>
+<p>Just a blank line:</p>
+<ul>
+<li>
+<p>A</p>
+</li>
+<li>
+<p>B</p>
+</li>
+</ul>
+<p>Now a list with 4 spaces and some text:</p>
+<ul>
+<li>A
+ abcdef</li>
+<li>B</li>
+</ul>
+<p>Now with a tab and an extra space:</p>
+<ul>
+<li>
+<p>A</p>
+</li>
+<li>
+<p>B</p>
+</li>
+</ul>
+<p>Now a list with 4 spaces:</p>
+<ul>
+<li>
+<p>A</p>
+</li>
+<li>
+<p>B</p>
+</li>
+</ul> \ No newline at end of file
diff --git a/tests/misc/tabs-in-lists.txt b/tests/misc/tabs-in-lists.txt
new file mode 100644
index 0000000..05fde23
--- /dev/null
+++ b/tests/misc/tabs-in-lists.txt
@@ -0,0 +1,32 @@
+First a list with a tabbed line
+
+* A
+
+* B
+
+Just a blank line:
+
+* A
+
+* B
+
+
+Now a list with 4 spaces and some text:
+
+* A
+ abcdef
+* B
+
+
+Now with a tab and an extra space:
+
+* A
+
+* B
+
+Now a list with 4 spaces:
+
+* A
+
+* B
+
diff --git a/tests/misc/two-spaces.html b/tests/misc/two-spaces.html
new file mode 100644
index 0000000..102d1db
--- /dev/null
+++ b/tests/misc/two-spaces.html
@@ -0,0 +1,21 @@
+<p>This line has two spaces at the end<br />
+but this one has none
+but this line has three <br />
+and this is the second from last line
+in this test message</p>
+<ul>
+<li>This list item has two spaces.<br />
+</li>
+<li>
+<p>This has none.
+ This line has three. <br />
+ This line has none.
+ And this line two.<br />
+</p>
+<p>This line has none.</p>
+</li>
+<li>
+<p>This line has none.</p>
+</li>
+</ul>
+<p>And this is the end.</p> \ No newline at end of file
diff --git a/tests/misc/two-spaces.txt b/tests/misc/two-spaces.txt
new file mode 100644
index 0000000..61c19f7
--- /dev/null
+++ b/tests/misc/two-spaces.txt
@@ -0,0 +1,17 @@
+This line has two spaces at the end
+but this one has none
+but this line has three
+and this is the second from last line
+in this test message
+
+* This list item has two spaces.
+* This has none.
+ This line has three.
+ This line has none.
+ And this line two.
+
+ This line has none.
+
+* This line has none.
+
+And this is the end.
diff --git a/tests/misc/uche.html b/tests/misc/uche.html
new file mode 100644
index 0000000..e62329d
--- /dev/null
+++ b/tests/misc/uche.html
@@ -0,0 +1,3 @@
+<p><img alt="asif" src="http://fourthought.com/images/ftlogo.png" title="Fourthought logo" /></p>
+<p><a href="http://fourthought.com/"><img alt="" src="http://fourthought.com/images/ftlogo.png" style="float: left; margin: 10px; border: none;" title="Fourthought logo" /></a></p>
+<p><a href="http://link.com/"><img alt="text" src="x" /></a></p> \ No newline at end of file
diff --git a/tests/misc/uche.txt b/tests/misc/uche.txt
new file mode 100644
index 0000000..a3dda1a
--- /dev/null
+++ b/tests/misc/uche.txt
@@ -0,0 +1,7 @@
+![asif](http://fourthought.com/images/ftlogo.png "Fourthought logo")
+
+[![{@style=float: left; margin: 10px; border:
+none;}](http://fourthought.com/images/ftlogo.png "Fourthought
+logo")](http://fourthought.com/)
+
+[![text](x)](http://link.com/)
diff --git a/tests/misc/underscores.html b/tests/misc/underscores.html
new file mode 100644
index 0000000..54bd9f9
--- /dev/null
+++ b/tests/misc/underscores.html
@@ -0,0 +1,6 @@
+<p>THIS_SHOULD_STAY_AS_IS</p>
+<p>Here is some <em>emphasis</em>, ok?</p>
+<p>Ok, at least <em>this</em> should work.</p>
+<p>THIS<strong>SHOULD</strong>STAY</p>
+<p>Here is some <strong>strong</strong> stuff.</p>
+<p>THIS<strong><em>SHOULD</em></strong>STAY?</p> \ No newline at end of file
diff --git a/tests/misc/underscores.txt b/tests/misc/underscores.txt
new file mode 100644
index 0000000..3c7f4bd
--- /dev/null
+++ b/tests/misc/underscores.txt
@@ -0,0 +1,11 @@
+THIS_SHOULD_STAY_AS_IS
+
+Here is some _emphasis_, ok?
+
+Ok, at least _this_ should work.
+
+THIS__SHOULD__STAY
+
+Here is some __strong__ stuff.
+
+THIS___SHOULD___STAY?
diff --git a/tests/misc/url_spaces.html b/tests/misc/url_spaces.html
new file mode 100644
index 0000000..ebacb75
--- /dev/null
+++ b/tests/misc/url_spaces.html
@@ -0,0 +1,2 @@
+<p><a href="http://wikipedia.org/wiki/Dawn of War">Dawn of War</a></p>
+<p><a href="http://wikipedia.org/wiki/Dawn of War" title="Dawn of War">Dawn of War</a></p> \ No newline at end of file
diff --git a/tests/misc/url_spaces.txt b/tests/misc/url_spaces.txt
new file mode 100644
index 0000000..3d2a82d
--- /dev/null
+++ b/tests/misc/url_spaces.txt
@@ -0,0 +1,4 @@
+[Dawn of War](http://wikipedia.org/wiki/Dawn of War)
+
+
+[Dawn of War](http://wikipedia.org/wiki/Dawn of War "Dawn of War")