diff options
author | Waylan Limberg <waylan@gmail.com> | 2010-02-12 15:45:28 -0500 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2010-02-12 15:53:20 -0500 |
commit | 7e0b959ef2a64f2339be28f258b895d7a79003a8 (patch) | |
tree | e4383c374ceaa8f8afc6a4659b85fcb6927d62f6 /markdown | |
parent | 8f62bb0a6ce46055a2decbae6b33d53922c758b8 (diff) | |
download | markdown-7e0b959ef2a64f2339be28f258b895d7a79003a8.tar.gz markdown-7e0b959ef2a64f2339be28f258b895d7a79003a8.tar.bz2 markdown-7e0b959ef2a64f2339be28f258b895d7a79003a8.zip |
Moved remaining tests from merge
Diffstat (limited to 'markdown')
-rw-r--r-- | markdown/tests/extensions/extra/raw-html.html | 14 | ||||
-rw-r--r-- | markdown/tests/extensions/extra/raw-html.txt | 12 | ||||
-rw-r--r-- | markdown/tests/extensions/test.cfg | 6 | ||||
-rw-r--r-- | markdown/tests/extensions/toc_nested.html | 16 | ||||
-rw-r--r-- | markdown/tests/extensions/toc_nested.txt | 9 | ||||
-rw-r--r-- | markdown/tests/extensions/toc_nested2.html | 14 | ||||
-rw-r--r-- | markdown/tests/extensions/toc_nested2.txt | 10 | ||||
-rw-r--r-- | markdown/tests/misc/raw_whitespace.html | 8 | ||||
-rw-r--r-- | markdown/tests/misc/raw_whitespace.txt | 10 | ||||
-rw-r--r-- | markdown/tests/misc/smart_em.html | 5 | ||||
-rw-r--r-- | markdown/tests/misc/smart_em.txt | 9 |
11 files changed, 113 insertions, 0 deletions
diff --git a/markdown/tests/extensions/extra/raw-html.html b/markdown/tests/extensions/extra/raw-html.html new file mode 100644 index 0000000..b2a7c4d --- /dev/null +++ b/markdown/tests/extensions/extra/raw-html.html @@ -0,0 +1,14 @@ +<div> + +<p><em>foo</em></p> +</div> + +<div class="baz"> + +<p><em>bar</em></p> +</div> + +<div> + +<p><em>blah</em></p> +</div>
\ No newline at end of file diff --git a/markdown/tests/extensions/extra/raw-html.txt b/markdown/tests/extensions/extra/raw-html.txt new file mode 100644 index 0000000..284fe0c --- /dev/null +++ b/markdown/tests/extensions/extra/raw-html.txt @@ -0,0 +1,12 @@ +<div markdown="1">_foo_</div> + +<div markdown=1 class="baz"> +_bar_ +</div> + +<div markdown> + +_blah_ + +</div> + diff --git a/markdown/tests/extensions/test.cfg b/markdown/tests/extensions/test.cfg index 3a15b7b..6208201 100644 --- a/markdown/tests/extensions/test.cfg +++ b/markdown/tests/extensions/test.cfg @@ -7,5 +7,11 @@ extensions=toc [toc_invalid] extensions=toc +[toc_nested] +extensions=toc + +[toc_nested2] +extensions=toc + [wikilinks] extensions=wikilinks diff --git a/markdown/tests/extensions/toc_nested.html b/markdown/tests/extensions/toc_nested.html new file mode 100644 index 0000000..a8a1583 --- /dev/null +++ b/markdown/tests/extensions/toc_nested.html @@ -0,0 +1,16 @@ +<h1 id="header-a">Header A</h1> +<h2 id="header-1">Header 1</h2> +<h3 id="header-i">Header i</h3> +<h1 id="header-b">Header B</h1> +<div class="toc"> +<ul> +<li><a href="#header-a">Header A</a><ul> +<li><a href="#header-1">Header 1</a><ul> +<li><a href="#header-i">Header i</a></li> +</ul> +</li> +</ul> +</li> +<li><a href="#header-b">Header B</a></li> +</ul> +</div>
\ No newline at end of file diff --git a/markdown/tests/extensions/toc_nested.txt b/markdown/tests/extensions/toc_nested.txt new file mode 100644 index 0000000..9b515f9 --- /dev/null +++ b/markdown/tests/extensions/toc_nested.txt @@ -0,0 +1,9 @@ +# Header A + +## Header 1 + +### Header i + +# Header B + +[TOC] diff --git a/markdown/tests/extensions/toc_nested2.html b/markdown/tests/extensions/toc_nested2.html new file mode 100644 index 0000000..bf87716 --- /dev/null +++ b/markdown/tests/extensions/toc_nested2.html @@ -0,0 +1,14 @@ +<div class="toc"> +<ul> +<li><a href="#start-with-header-other-than-one">Start with header other than one.</a></li> +<li><a href="#header-3">Header 3</a><ul> +<li><a href="#header-4">Header 4</a></li> +</ul> +</li> +<li><a href="#header-3_1">Header 3</a></li> +</ul> +</div> +<h3 id="start-with-header-other-than-one">Start with header other than one.</h3> +<h3 id="header-3">Header 3</h3> +<h4 id="header-4">Header 4</h4> +<h3 id="header-3_1">Header 3</h3>
\ No newline at end of file diff --git a/markdown/tests/extensions/toc_nested2.txt b/markdown/tests/extensions/toc_nested2.txt new file mode 100644 index 0000000..9db4d8c --- /dev/null +++ b/markdown/tests/extensions/toc_nested2.txt @@ -0,0 +1,10 @@ +[TOC] + +### Start with header other than one. + +### Header 3 + +#### Header 4 + +### Header 3 + diff --git a/markdown/tests/misc/raw_whitespace.html b/markdown/tests/misc/raw_whitespace.html new file mode 100644 index 0000000..7a6f131 --- /dev/null +++ b/markdown/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/markdown/tests/misc/raw_whitespace.txt b/markdown/tests/misc/raw_whitespace.txt new file mode 100644 index 0000000..bbc7cec --- /dev/null +++ b/markdown/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/markdown/tests/misc/smart_em.html b/markdown/tests/misc/smart_em.html new file mode 100644 index 0000000..5683b25 --- /dev/null +++ b/markdown/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/markdown/tests/misc/smart_em.txt b/markdown/tests/misc/smart_em.txt new file mode 100644 index 0000000..3c56842 --- /dev/null +++ b/markdown/tests/misc/smart_em.txt @@ -0,0 +1,9 @@ +_emphasis_ + +this_is_not_emphasis + +[_punctuation with emphasis_] + +[_punctuation_with_emphasis_] + +[punctuation_without_emphasis] |