From 30e436ec7dda70f9d05cedf49a6f6c7ba340b386 Mon Sep 17 00:00:00 2001 From: Emanuil Rusev Date: Sat, 16 Nov 2013 01:55:09 +0200 Subject: [PATCH] simplify tests --- tests/data/atx_heading.html | 13 +++++----- tests/data/atx_heading.md | 14 ++++++----- tests/data/atx_heading_-_closed.html | 6 ----- tests/data/atx_heading_-_closed.md | 11 --------- tests/data/block-level_html.html | 9 +++++++ tests/data/block-level_html.md | 12 ++++++++++ tests/data/blockquote.html | 9 ------- tests/data/blockquote.md | 8 ------- tests/data/blockquote_-_compound.html | 16 ------------- tests/data/blockquote_-_compound.md | 14 ----------- tests/data/blockquote_-_lazy.html | 11 --------- tests/data/blockquote_-_lazy.md | 10 -------- tests/data/blockquote_-_whitespace.html | 12 ---------- tests/data/blockquote_-_whitespace.md | 10 -------- tests/data/code_block.html | 7 ++++-- tests/data/code_block.md | 11 ++++++--- tests/data/code_span.html | 2 +- tests/data/code_span.md | 2 +- tests/data/compound_blockquote.html | 9 +++++++ tests/data/compound_blockquote.md | 10 ++++++++ tests/data/compound_list.html | 12 ++++++++++ tests/data/compound_list.md | 7 ++++++ ...phasis_-_em_strong.html => em_strong.html} | 0 .../{emphasis_-_em_strong.md => em_strong.md} | 0 tests/data/emphasis.html | 14 ++++------- tests/data/emphasis.md | 21 ++++------------ tests/data/escaping.html | 6 +++-- tests/data/escaping.md | 8 +++++-- tests/data/horizontal_rule.html | 5 ---- tests/data/horizontal_rule.md | 9 ------- tests/data/html.html | 15 ------------ tests/data/html.md | 24 ------------------- tests/data/image_reference.html | 1 + tests/data/image_reference.md | 3 +++ tests/data/implicit_reference.html | 2 ++ tests/data/implicit_reference.md | 5 ++++ tests/data/inline_link.html | 4 ++-- tests/data/inline_link.md | 4 ++-- tests/data/lazy_blockquote.html | 4 ++++ tests/data/lazy_blockquote.md | 2 ++ tests/data/lazy_list.html | 4 ++++ tests/data/lazy_list.md | 2 ++ tests/data/list.html | 5 ---- tests/data/list.md | 4 ---- tests/data/list_-_compound.html | 13 ---------- tests/data/list_-_compound.md | 9 ------- tests/data/list_-_lazy.html | 4 ---- tests/data/list_-_lazy.md | 2 -- tests/data/list_-_ordered.html | 14 ----------- tests/data/list_-_ordered.md | 13 ---------- tests/data/list_-_sparse.html | 16 ------------- tests/data/list_-_sparse.md | 11 --------- tests/data/list_-_unordered.md | 10 -------- tests/data/list_-_whitespace.html | 5 ---- tests/data/list_-_whitespace.md | 4 ---- tests/data/ordered_list.html | 13 ++++++++++ tests/data/ordered_list.md | 11 +++++++++ tests/data/reference_link.html | 7 ------ tests/data/reference_link.md | 19 --------------- tests/data/reference_link_-_image.html | 1 - tests/data/reference_link_-_image.md | 3 --- tests/data/reference_link_-_implicit.html | 2 -- tests/data/reference_link_-_implicit.md | 5 ---- tests/data/reference_link_-_whitespace.html | 1 - tests/data/reference_link_-_whitespace.md | 2 -- tests/data/simple_blockquote.html | 11 +++++++++ tests/data/simple_blockquote.md | 7 ++++++ tests/data/span-level_html.html | 3 +++ tests/data/span-level_html.md | 4 ++++ tests/data/span_level_html.html | 1 - tests/data/span_level_html.md | 1 - tests/data/sparse_list.html | 15 ++++++++++++ tests/data/sparse_list.md | 9 +++++++ tests/data/special_characters.html | 14 +++++------ tests/data/special_characters.md | 14 +++++------ tests/data/text_reference.html | 6 +++++ tests/data/text_reference.md | 16 +++++++++++++ ...t_-_unordered.html => unordered_list.html} | 3 +-- tests/data/unordered_list.md | 8 +++++++ tests/data/whitespace.html | 2 +- tests/data/whitespace.md | 2 +- 81 files changed, 255 insertions(+), 383 deletions(-) delete mode 100644 tests/data/atx_heading_-_closed.html delete mode 100644 tests/data/atx_heading_-_closed.md create mode 100644 tests/data/block-level_html.html create mode 100644 tests/data/block-level_html.md delete mode 100644 tests/data/blockquote.html delete mode 100644 tests/data/blockquote.md delete mode 100644 tests/data/blockquote_-_compound.html delete mode 100644 tests/data/blockquote_-_compound.md delete mode 100644 tests/data/blockquote_-_lazy.html delete mode 100644 tests/data/blockquote_-_lazy.md delete mode 100644 tests/data/blockquote_-_whitespace.html delete mode 100644 tests/data/blockquote_-_whitespace.md create mode 100644 tests/data/compound_blockquote.html create mode 100644 tests/data/compound_blockquote.md create mode 100644 tests/data/compound_list.html create mode 100644 tests/data/compound_list.md rename tests/data/{emphasis_-_em_strong.html => em_strong.html} (100%) rename tests/data/{emphasis_-_em_strong.md => em_strong.md} (100%) delete mode 100644 tests/data/html.html delete mode 100644 tests/data/html.md create mode 100644 tests/data/image_reference.html create mode 100644 tests/data/image_reference.md create mode 100644 tests/data/implicit_reference.html create mode 100644 tests/data/implicit_reference.md create mode 100644 tests/data/lazy_blockquote.html create mode 100644 tests/data/lazy_blockquote.md create mode 100644 tests/data/lazy_list.html create mode 100644 tests/data/lazy_list.md delete mode 100644 tests/data/list.html delete mode 100644 tests/data/list.md delete mode 100644 tests/data/list_-_compound.html delete mode 100644 tests/data/list_-_compound.md delete mode 100644 tests/data/list_-_lazy.html delete mode 100644 tests/data/list_-_lazy.md delete mode 100644 tests/data/list_-_ordered.html delete mode 100644 tests/data/list_-_ordered.md delete mode 100644 tests/data/list_-_sparse.html delete mode 100644 tests/data/list_-_sparse.md delete mode 100644 tests/data/list_-_unordered.md delete mode 100644 tests/data/list_-_whitespace.html delete mode 100644 tests/data/list_-_whitespace.md create mode 100644 tests/data/ordered_list.html create mode 100644 tests/data/ordered_list.md delete mode 100644 tests/data/reference_link.html delete mode 100644 tests/data/reference_link.md delete mode 100644 tests/data/reference_link_-_image.html delete mode 100644 tests/data/reference_link_-_image.md delete mode 100644 tests/data/reference_link_-_implicit.html delete mode 100644 tests/data/reference_link_-_implicit.md delete mode 100644 tests/data/reference_link_-_whitespace.html delete mode 100644 tests/data/reference_link_-_whitespace.md create mode 100644 tests/data/simple_blockquote.html create mode 100644 tests/data/simple_blockquote.md create mode 100644 tests/data/span-level_html.html create mode 100644 tests/data/span-level_html.md delete mode 100644 tests/data/span_level_html.html delete mode 100644 tests/data/span_level_html.md create mode 100644 tests/data/sparse_list.html create mode 100644 tests/data/sparse_list.md create mode 100644 tests/data/text_reference.html create mode 100644 tests/data/text_reference.md rename tests/data/{list_-_unordered.html => unordered_list.html} (53%) create mode 100644 tests/data/unordered_list.md diff --git a/tests/data/atx_heading.html b/tests/data/atx_heading.html index a5c8f15..449c44d 100644 --- a/tests/data/atx_heading.html +++ b/tests/data/atx_heading.html @@ -1,6 +1,7 @@ -

This is an h1

-

This is an h2

-

This is an h3

-

This is an h4

-
This is an h5
-
This is an h6
\ No newline at end of file +

h1

+

h2

+

h3

+

h4

+
h5
+
h6
+

closed h1

\ No newline at end of file diff --git a/tests/data/atx_heading.md b/tests/data/atx_heading.md index 07ef629..d261f67 100644 --- a/tests/data/atx_heading.md +++ b/tests/data/atx_heading.md @@ -1,11 +1,13 @@ -# This is an h1 +# h1 -## This is an h2 +## h2 -### This is an h3 +### h3 -#### This is an h4 +#### h4 -##### This is an h5 +##### h5 -###### This is an h6 \ No newline at end of file +###### h6 + +# closed h1 # \ No newline at end of file diff --git a/tests/data/atx_heading_-_closed.html b/tests/data/atx_heading_-_closed.html deleted file mode 100644 index 6a5c4fa..0000000 --- a/tests/data/atx_heading_-_closed.html +++ /dev/null @@ -1,6 +0,0 @@ -

h1

-

h2

-

h3

-

h4

-
h5
-
h6
\ No newline at end of file diff --git a/tests/data/atx_heading_-_closed.md b/tests/data/atx_heading_-_closed.md deleted file mode 100644 index ed66c59..0000000 --- a/tests/data/atx_heading_-_closed.md +++ /dev/null @@ -1,11 +0,0 @@ -# h1 # - -## h2 ## - -### h3 ### - -#### h4 #### - -##### h5 ##### - -###### h6 ###### \ No newline at end of file diff --git a/tests/data/block-level_html.html b/tests/data/block-level_html.html new file mode 100644 index 0000000..b3d23c5 --- /dev/null +++ b/tests/data/block-level_html.html @@ -0,0 +1,9 @@ +
content
+
+

nested elements:

+
+parent +
+child +
+
\ No newline at end of file diff --git a/tests/data/block-level_html.md b/tests/data/block-level_html.md new file mode 100644 index 0000000..ee5b19d --- /dev/null +++ b/tests/data/block-level_html.md @@ -0,0 +1,12 @@ +
content
+ +
+ +nested elements: + +
+parent +
+child +
+
\ No newline at end of file diff --git a/tests/data/blockquote.html b/tests/data/blockquote.html deleted file mode 100644 index de5d652..0000000 --- a/tests/data/blockquote.html +++ /dev/null @@ -1,9 +0,0 @@ -

Here's a blockquote:

-
-

blockquote

-
-

Here's one on multiple lines:

-
-

line 1 -line 2

-
\ No newline at end of file diff --git a/tests/data/blockquote.md b/tests/data/blockquote.md deleted file mode 100644 index 65f71cc..0000000 --- a/tests/data/blockquote.md +++ /dev/null @@ -1,8 +0,0 @@ -Here's a blockquote: - -> blockquote - -Here's one on multiple lines: - -> line 1 -> line 2 \ No newline at end of file diff --git a/tests/data/blockquote_-_compound.html b/tests/data/blockquote_-_compound.html deleted file mode 100644 index d81bfb4..0000000 --- a/tests/data/blockquote_-_compound.html +++ /dev/null @@ -1,16 +0,0 @@ -

Here's one with multiple paragraphs:

-
-

This is line one.

-

This is line two.

-
-

Here's one with multiple types of blocks:

-
-

This is a quoted paragraph.

- -
-

This is a nested quote block.

-
-
\ No newline at end of file diff --git a/tests/data/blockquote_-_compound.md b/tests/data/blockquote_-_compound.md deleted file mode 100644 index a4c9c00..0000000 --- a/tests/data/blockquote_-_compound.md +++ /dev/null @@ -1,14 +0,0 @@ -Here's one with multiple paragraphs: - -> This is line one. -> -> This is line two. - -Here's one with multiple types of blocks: - -> This is a quoted paragraph. -> -> - This is a list item of a quoted list. -> - This is another list item. -> -> > This is a nested quote block. \ No newline at end of file diff --git a/tests/data/blockquote_-_lazy.html b/tests/data/blockquote_-_lazy.html deleted file mode 100644 index e356a57..0000000 --- a/tests/data/blockquote_-_lazy.html +++ /dev/null @@ -1,11 +0,0 @@ -

Here's a lazy blockquote:

-
-

line -line

-
-

Here's one with multiple lines:

-
-

line -line -line

-
\ No newline at end of file diff --git a/tests/data/blockquote_-_lazy.md b/tests/data/blockquote_-_lazy.md deleted file mode 100644 index 18bbad6..0000000 --- a/tests/data/blockquote_-_lazy.md +++ /dev/null @@ -1,10 +0,0 @@ -Here's a lazy blockquote: - -> line -line - -Here's one with multiple lines: - -> line -line -line \ No newline at end of file diff --git a/tests/data/blockquote_-_whitespace.html b/tests/data/blockquote_-_whitespace.html deleted file mode 100644 index 1e89a03..0000000 --- a/tests/data/blockquote_-_whitespace.html +++ /dev/null @@ -1,12 +0,0 @@ -

Here's a blockquote with no space after the ">":

-
-

blockquote

-
-

Here's a blockquote with leading space:

-
-

blockquote

-
-

Here's a blockquote on the next line:

-
-

blockquote

-
\ No newline at end of file diff --git a/tests/data/blockquote_-_whitespace.md b/tests/data/blockquote_-_whitespace.md deleted file mode 100644 index 35707c1..0000000 --- a/tests/data/blockquote_-_whitespace.md +++ /dev/null @@ -1,10 +0,0 @@ -Here's a blockquote with no space after the ">": - ->blockquote - -Here's a blockquote with leading space: - - > blockquote - -Here's a blockquote on the next line: -> blockquote \ No newline at end of file diff --git a/tests/data/code_block.html b/tests/data/code_block.html index 5ca8c2a..20f8de4 100644 --- a/tests/data/code_block.html +++ b/tests/data/code_block.html @@ -1,5 +1,8 @@ -

Here's a code block:

<?php
 
 $message = 'Hello World!'; 
-echo $message;
\ No newline at end of file +echo $message; +
+
> not a quote 
+- not a list item
+[not a reference]: http://foo.com
\ No newline at end of file diff --git a/tests/data/code_block.md b/tests/data/code_block.md index 1c24118..59104cb 100644 --- a/tests/data/code_block.md +++ b/tests/data/code_block.md @@ -1,6 +1,11 @@ -Here's a code block: - not a quote + - not a list item + [not a reference]: http://foo.com + \ No newline at end of file diff --git a/tests/data/code_span.html b/tests/data/code_span.html index 9c03025..40674be 100644 --- a/tests/data/code_span.html +++ b/tests/data/code_span.html @@ -1 +1 @@ -

This is a code span.

\ No newline at end of file +

a code span

\ No newline at end of file diff --git a/tests/data/code_span.md b/tests/data/code_span.md index 03d24b5..dfd136b 100644 --- a/tests/data/code_span.md +++ b/tests/data/code_span.md @@ -1 +1 @@ -This is a `code span`. \ No newline at end of file +a `code span` \ No newline at end of file diff --git a/tests/data/compound_blockquote.html b/tests/data/compound_blockquote.html new file mode 100644 index 0000000..37afb57 --- /dev/null +++ b/tests/data/compound_blockquote.html @@ -0,0 +1,9 @@ +
+

header

+

paragraph

+ +
+

paragraph

+
\ No newline at end of file diff --git a/tests/data/compound_blockquote.md b/tests/data/compound_blockquote.md new file mode 100644 index 0000000..80c4aed --- /dev/null +++ b/tests/data/compound_blockquote.md @@ -0,0 +1,10 @@ +> header +> ------ +> +> paragraph +> +> - li +> +> --- +> +> paragraph \ No newline at end of file diff --git a/tests/data/compound_list.html b/tests/data/compound_list.html new file mode 100644 index 0000000..f5593c1 --- /dev/null +++ b/tests/data/compound_list.html @@ -0,0 +1,12 @@ + \ No newline at end of file diff --git a/tests/data/compound_list.md b/tests/data/compound_list.md new file mode 100644 index 0000000..ed7f0c6 --- /dev/null +++ b/tests/data/compound_list.md @@ -0,0 +1,7 @@ +- paragraph + + paragraph + +- paragraph + + > quote \ No newline at end of file diff --git a/tests/data/emphasis_-_em_strong.html b/tests/data/em_strong.html similarity index 100% rename from tests/data/emphasis_-_em_strong.html rename to tests/data/em_strong.html diff --git a/tests/data/emphasis_-_em_strong.md b/tests/data/em_strong.md similarity index 100% rename from tests/data/emphasis_-_em_strong.md rename to tests/data/em_strong.md diff --git a/tests/data/emphasis.html b/tests/data/emphasis.html index 9a8481a..aac2810 100644 --- a/tests/data/emphasis.html +++ b/tests/data/emphasis.html @@ -1,11 +1,5 @@ -

Here's an emphasis.

-

A short one a b .

-

Here's a strong one.

-

Here's one that uses underscores.

-

Here's a strong one that uses underscores.

-

This is not _ one _ neither is * this * neither is _ this_ neither is _this _.

-

An empty emphasis ** is not __ an emphasis.

-

A multi-line +

underscore, asterisk, one two, three four, a, b

+

multiline emphasis

-

A multi-line -strong emphasis

\ No newline at end of file +

_ this _ is not an emphasis, neither is _ this_, _this _, or _this*

+

an empty emphasis __ ** is not an emphasis

\ No newline at end of file diff --git a/tests/data/emphasis.md b/tests/data/emphasis.md index e125c9d..d32cc56 100644 --- a/tests/data/emphasis.md +++ b/tests/data/emphasis.md @@ -1,19 +1,8 @@ -Here's *an emphasis*. +_underscore_, *asterisk*, _one two_, *three four*, _a_, *b* -A short one _a_ *b* . +_multiline +emphasis_ -Here's **a strong one**. +_ this _ is not an emphasis, neither is _ this_, _this _, or _this* -Here's _one that uses underscores_. - -Here's __a strong one that uses underscores__. - -This is not _ one _ neither is * this * neither is _ this_ neither is _this _. - -An empty emphasis ** is not __ an emphasis. - -A *multi-line -emphasis* - -A **multi-line -strong emphasis** \ No newline at end of file +an empty emphasis __ ** is not an emphasis \ No newline at end of file diff --git a/tests/data/escaping.html b/tests/data/escaping.html index f75f6f6..64676cb 100644 --- a/tests/data/escaping.html +++ b/tests/data/escaping.html @@ -1,2 +1,4 @@ -

Here's an emphasis and here's an escaped *emphasis*. Here are also an escaped `code span`, an escaped [inline link](http://example.com) and an escaped \*emphasis\* inside of a code span.

-
An escaped \*emphasis\* inside of a code block.
\ No newline at end of file +

escaped *emphasis*.

+

escaped \*emphasis\* in a code span

+
escaped \*emphasis\* in a code block
+

\ ` * _ { } [ ] ( ) > # + - . !

\ No newline at end of file diff --git a/tests/data/escaping.md b/tests/data/escaping.md index c17e086..164039f 100644 --- a/tests/data/escaping.md +++ b/tests/data/escaping.md @@ -1,3 +1,7 @@ -Here's an *emphasis* and here's an escaped \*emphasis\*. Here are also an escaped \`code span\`, an escaped \[inline link](http://example.com) and an escaped `\*emphasis\*` inside of a code span. +escaped \*emphasis\*. - An escaped \*emphasis\* inside of a code block. \ No newline at end of file +`escaped \*emphasis\* in a code span` + + escaped \*emphasis\* in a code block + +\\ \` \* \_ \{ \} \[ \] \( \) \> \# \+ \- \. \! \ No newline at end of file diff --git a/tests/data/horizontal_rule.html b/tests/data/horizontal_rule.html index 6bdebe8..248b791 100644 --- a/tests/data/horizontal_rule.html +++ b/tests/data/horizontal_rule.html @@ -1,10 +1,5 @@ -

Dashes:




-

Asterisks:


-

Underscores:

-
-

On the next line:


\ No newline at end of file diff --git a/tests/data/horizontal_rule.md b/tests/data/horizontal_rule.md index 59ec201..12efdd3 100644 --- a/tests/data/horizontal_rule.md +++ b/tests/data/horizontal_rule.md @@ -1,18 +1,9 @@ -Dashes: - --- - - - - - - -Asterisks: - *** -Underscores: - -___ - -On the next line: ___ \ No newline at end of file diff --git a/tests/data/html.html b/tests/data/html.html deleted file mode 100644 index 9f5b6b7..0000000 --- a/tests/data/html.html +++ /dev/null @@ -1,15 +0,0 @@ -

A self-closing tag:

-
-

One with attributes:

-
-

A bare element:

-
content
-

One with attributes:

-link -

Nested elements:

-
-parent -
-child -
-
\ No newline at end of file diff --git a/tests/data/html.md b/tests/data/html.md deleted file mode 100644 index b2b1266..0000000 --- a/tests/data/html.md +++ /dev/null @@ -1,24 +0,0 @@ -A self-closing tag: - -
- -One with attributes: - -
- -A bare element: - -
content
- -One with attributes: - -link - -Nested elements: - -
-parent -
-child -
-
\ No newline at end of file diff --git a/tests/data/image_reference.html b/tests/data/image_reference.html new file mode 100644 index 0000000..e882dfd --- /dev/null +++ b/tests/data/image_reference.html @@ -0,0 +1 @@ +

Markdown Logo

\ No newline at end of file diff --git a/tests/data/image_reference.md b/tests/data/image_reference.md new file mode 100644 index 0000000..b8db468 --- /dev/null +++ b/tests/data/image_reference.md @@ -0,0 +1,3 @@ +![Markdown Logo][image] + +[image]: /md.png \ No newline at end of file diff --git a/tests/data/implicit_reference.html b/tests/data/implicit_reference.html new file mode 100644 index 0000000..4565680 --- /dev/null +++ b/tests/data/implicit_reference.html @@ -0,0 +1,2 @@ +

an implicit reference link

+

an implicit reference link with an empty link definition

\ No newline at end of file diff --git a/tests/data/implicit_reference.md b/tests/data/implicit_reference.md new file mode 100644 index 0000000..96e5ff4 --- /dev/null +++ b/tests/data/implicit_reference.md @@ -0,0 +1,5 @@ +an [implicit] reference link + +[implicit]: http://example.com + +an [implicit][] reference link with an empty link definition \ No newline at end of file diff --git a/tests/data/inline_link.html b/tests/data/inline_link.html index 7ff07da..7dc6b21 100644 --- a/tests/data/inline_link.html +++ b/tests/data/inline_link.html @@ -1,2 +1,2 @@ -

Here's a link.

-

Here's one that is based on an image: MD Logo.

\ No newline at end of file +

link

+

MD Logo

\ No newline at end of file diff --git a/tests/data/inline_link.md b/tests/data/inline_link.md index acdc409..a4931a0 100644 --- a/tests/data/inline_link.md +++ b/tests/data/inline_link.md @@ -1,3 +1,3 @@ -Here's a [link](http://example.com). +[link](http://example.com) -Here's one that is based on an image: [![MD Logo](http://parsedown.org/md.png)](http://daringfireball.net/projects/markdown/). \ No newline at end of file +[![MD Logo](http://parsedown.org/md.png)](http://example.com) \ No newline at end of file diff --git a/tests/data/lazy_blockquote.html b/tests/data/lazy_blockquote.html new file mode 100644 index 0000000..c368a0b --- /dev/null +++ b/tests/data/lazy_blockquote.html @@ -0,0 +1,4 @@ +
+

quote +the rest of it

+
\ No newline at end of file diff --git a/tests/data/lazy_blockquote.md b/tests/data/lazy_blockquote.md new file mode 100644 index 0000000..8490c22 --- /dev/null +++ b/tests/data/lazy_blockquote.md @@ -0,0 +1,2 @@ +> quote +the rest of it \ No newline at end of file diff --git a/tests/data/lazy_list.html b/tests/data/lazy_list.html new file mode 100644 index 0000000..1a51992 --- /dev/null +++ b/tests/data/lazy_list.html @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/tests/data/lazy_list.md b/tests/data/lazy_list.md new file mode 100644 index 0000000..62ad9d7 --- /dev/null +++ b/tests/data/lazy_list.md @@ -0,0 +1,2 @@ +- li +the rest of it \ No newline at end of file diff --git a/tests/data/list.html b/tests/data/list.html deleted file mode 100644 index b3fc7d4..0000000 --- a/tests/data/list.html +++ /dev/null @@ -1,5 +0,0 @@ -

Here's a list:

- \ No newline at end of file diff --git a/tests/data/list.md b/tests/data/list.md deleted file mode 100644 index adf7d64..0000000 --- a/tests/data/list.md +++ /dev/null @@ -1,4 +0,0 @@ -Here's a list: - -- li -- li \ No newline at end of file diff --git a/tests/data/list_-_compound.html b/tests/data/list_-_compound.html deleted file mode 100644 index 6416c6b..0000000 --- a/tests/data/list_-_compound.html +++ /dev/null @@ -1,13 +0,0 @@ -

Here's a compound list:

- \ No newline at end of file diff --git a/tests/data/list_-_compound.md b/tests/data/list_-_compound.md deleted file mode 100644 index 1491dcd..0000000 --- a/tests/data/list_-_compound.md +++ /dev/null @@ -1,9 +0,0 @@ -Here's a compound list: - -- This is the first paragraph of the list item. - - This is the second one. - -- This is another list item. - - > This is a quote block that belongs to it. \ No newline at end of file diff --git a/tests/data/list_-_lazy.html b/tests/data/list_-_lazy.html deleted file mode 100644 index 9eabfc6..0000000 --- a/tests/data/list_-_lazy.html +++ /dev/null @@ -1,4 +0,0 @@ - \ No newline at end of file diff --git a/tests/data/list_-_lazy.md b/tests/data/list_-_lazy.md deleted file mode 100644 index 55541d9..0000000 --- a/tests/data/list_-_lazy.md +++ /dev/null @@ -1,2 +0,0 @@ -- li -more text \ No newline at end of file diff --git a/tests/data/list_-_ordered.html b/tests/data/list_-_ordered.html deleted file mode 100644 index f37f62a..0000000 --- a/tests/data/list_-_ordered.html +++ /dev/null @@ -1,14 +0,0 @@ -

Here's a regular ordered list:

-
    -
  1. one
  2. -
  3. two
  4. -
-

Here's one with repeating numbers:

-
    -
  1. one
  2. -
  3. two
  4. -
-

Here's one with large numbers:

-
    -
  1. one
  2. -
\ No newline at end of file diff --git a/tests/data/list_-_ordered.md b/tests/data/list_-_ordered.md deleted file mode 100644 index 1eb0dbd..0000000 --- a/tests/data/list_-_ordered.md +++ /dev/null @@ -1,13 +0,0 @@ -Here's a regular ordered list: - -1. one -2. two - -Here's one with repeating numbers: - -1. one -1. two - -Here's one with large numbers: - -123. one \ No newline at end of file diff --git a/tests/data/list_-_sparse.html b/tests/data/list_-_sparse.html deleted file mode 100644 index c03710b..0000000 --- a/tests/data/list_-_sparse.html +++ /dev/null @@ -1,16 +0,0 @@ -

Here's a sparse list:

- -

Here's one with an indented list item:

- \ No newline at end of file diff --git a/tests/data/list_-_sparse.md b/tests/data/list_-_sparse.md deleted file mode 100644 index 14aaf5d..0000000 --- a/tests/data/list_-_sparse.md +++ /dev/null @@ -1,11 +0,0 @@ -Here's a sparse list: - -- list item - -- another list item - -Here's one with an indented list item: - -- li - - - li \ No newline at end of file diff --git a/tests/data/list_-_unordered.md b/tests/data/list_-_unordered.md deleted file mode 100644 index c69ba63..0000000 --- a/tests/data/list_-_unordered.md +++ /dev/null @@ -1,10 +0,0 @@ -Here's an unordered list: - -- li -- li - -Here's one with mixed markers: - -- li -+ li -* li \ No newline at end of file diff --git a/tests/data/list_-_whitespace.html b/tests/data/list_-_whitespace.html deleted file mode 100644 index c793fa1..0000000 --- a/tests/data/list_-_whitespace.html +++ /dev/null @@ -1,5 +0,0 @@ -

Here's one with white space around items:

- \ No newline at end of file diff --git a/tests/data/list_-_whitespace.md b/tests/data/list_-_whitespace.md deleted file mode 100644 index 260bafc..0000000 --- a/tests/data/list_-_whitespace.md +++ /dev/null @@ -1,4 +0,0 @@ -Here's one with white space around items: - - - li - - li \ No newline at end of file diff --git a/tests/data/ordered_list.html b/tests/data/ordered_list.html new file mode 100644 index 0000000..b6c5216 --- /dev/null +++ b/tests/data/ordered_list.html @@ -0,0 +1,13 @@ +
    +
  1. one
  2. +
  3. two
  4. +
+

repeating numbers:

+
    +
  1. one
  2. +
  3. two
  4. +
+

large numbers:

+
    +
  1. one
  2. +
\ No newline at end of file diff --git a/tests/data/ordered_list.md b/tests/data/ordered_list.md new file mode 100644 index 0000000..b307032 --- /dev/null +++ b/tests/data/ordered_list.md @@ -0,0 +1,11 @@ +1. one +2. two + +repeating numbers: + +1. one +1. two + +large numbers: + +123. one \ No newline at end of file diff --git a/tests/data/reference_link.html b/tests/data/reference_link.html deleted file mode 100644 index 8cb7da3..0000000 --- a/tests/data/reference_link.html +++ /dev/null @@ -1,7 +0,0 @@ -

Here's a reference link.

-

Here's one with a semantic name.

-

Here's one with an upper case label definition.

-

Here's one with definition name on the next line.

-

Here's [one][404] with no definition.

-

Here's a multiline -one defined on 2 lines.

\ No newline at end of file diff --git a/tests/data/reference_link.md b/tests/data/reference_link.md deleted file mode 100644 index 98f9f49..0000000 --- a/tests/data/reference_link.md +++ /dev/null @@ -1,19 +0,0 @@ -Here's a [reference link][1]. - -[1]: http://example.com - -Here's [one][website] with a semantic name. - -[website]: http://example.com - -Here's [one][case] with an upper case label definition. - -[CASE]: http://example.com - -Here's [one] -[website] with definition name on the next line. - -Here's [one][404] with no definition. - -Here's a [multiline -one][website] defined on 2 lines. \ No newline at end of file diff --git a/tests/data/reference_link_-_image.html b/tests/data/reference_link_-_image.html deleted file mode 100644 index d920916..0000000 --- a/tests/data/reference_link_-_image.html +++ /dev/null @@ -1 +0,0 @@ -

Here's an image: Markdown Logo

\ No newline at end of file diff --git a/tests/data/reference_link_-_image.md b/tests/data/reference_link_-_image.md deleted file mode 100644 index dcd6823..0000000 --- a/tests/data/reference_link_-_image.md +++ /dev/null @@ -1,3 +0,0 @@ -Here's an image: ![Markdown Logo][image] - -[image]: /md.png \ No newline at end of file diff --git a/tests/data/reference_link_-_implicit.html b/tests/data/reference_link_-_implicit.html deleted file mode 100644 index 3f22b8f..0000000 --- a/tests/data/reference_link_-_implicit.html +++ /dev/null @@ -1,2 +0,0 @@ -

Here's an implicit reference link.

-

Here's an implicit one with an empty link definition.

\ No newline at end of file diff --git a/tests/data/reference_link_-_implicit.md b/tests/data/reference_link_-_implicit.md deleted file mode 100644 index 5f31d16..0000000 --- a/tests/data/reference_link_-_implicit.md +++ /dev/null @@ -1,5 +0,0 @@ -Here's an [implicit] reference link. - -[implicit]: http://example.com - -Here's an [implicit][] one with an empty link definition. \ No newline at end of file diff --git a/tests/data/reference_link_-_whitespace.html b/tests/data/reference_link_-_whitespace.html deleted file mode 100644 index 5f1d3c9..0000000 --- a/tests/data/reference_link_-_whitespace.html +++ /dev/null @@ -1 +0,0 @@ -

Here's a reference link with a definition on the next line.

\ No newline at end of file diff --git a/tests/data/reference_link_-_whitespace.md b/tests/data/reference_link_-_whitespace.md deleted file mode 100644 index 14d8803..0000000 --- a/tests/data/reference_link_-_whitespace.md +++ /dev/null @@ -1,2 +0,0 @@ -Here's a [reference link][2] with a definition on the next line. -[2]: http://example.com \ No newline at end of file diff --git a/tests/data/simple_blockquote.html b/tests/data/simple_blockquote.html new file mode 100644 index 0000000..8225d57 --- /dev/null +++ b/tests/data/simple_blockquote.html @@ -0,0 +1,11 @@ +
+

quote

+
+

indented:

+
+

quote

+
+

no space after >:

+
+

quote

+
\ No newline at end of file diff --git a/tests/data/simple_blockquote.md b/tests/data/simple_blockquote.md new file mode 100644 index 0000000..22b6b11 --- /dev/null +++ b/tests/data/simple_blockquote.md @@ -0,0 +1,7 @@ +> quote + +indented: + > quote + +no space after `>`: +>quote \ No newline at end of file diff --git a/tests/data/span-level_html.html b/tests/data/span-level_html.html new file mode 100644 index 0000000..9ef717c --- /dev/null +++ b/tests/data/span-level_html.html @@ -0,0 +1,3 @@ +

an important link

+

broken
+line

\ No newline at end of file diff --git a/tests/data/span-level_html.md b/tests/data/span-level_html.md new file mode 100644 index 0000000..934ee16 --- /dev/null +++ b/tests/data/span-level_html.md @@ -0,0 +1,4 @@ +an important link + +broken
+line \ No newline at end of file diff --git a/tests/data/span_level_html.html b/tests/data/span_level_html.html deleted file mode 100644 index 45cea57..0000000 --- a/tests/data/span_level_html.html +++ /dev/null @@ -1 +0,0 @@ -

Here's an important link.

\ No newline at end of file diff --git a/tests/data/span_level_html.md b/tests/data/span_level_html.md deleted file mode 100644 index c474b55..0000000 --- a/tests/data/span_level_html.md +++ /dev/null @@ -1 +0,0 @@ -Here's an important link. \ No newline at end of file diff --git a/tests/data/sparse_list.html b/tests/data/sparse_list.html new file mode 100644 index 0000000..452b2b8 --- /dev/null +++ b/tests/data/sparse_list.html @@ -0,0 +1,15 @@ + +
+ \ No newline at end of file diff --git a/tests/data/sparse_list.md b/tests/data/sparse_list.md new file mode 100644 index 0000000..362a35f --- /dev/null +++ b/tests/data/sparse_list.md @@ -0,0 +1,9 @@ +- li + +- li + +--- + +- li + + - indented li \ No newline at end of file diff --git a/tests/data/special_characters.html b/tests/data/special_characters.html index b9ccabd..7fd3fbb 100644 --- a/tests/data/special_characters.html +++ b/tests/data/special_characters.html @@ -1,7 +1,7 @@ -

AT&T has an ampersand in their name.

-

AT&T is another way to write it.

-

This & that.

-

4 < 5 and 6 > 5.

-

Here's an autolink http://example.com/autolink?a=1&b=2

-

Here's an inline link.

-

Here's a reference link with an ampersand in the URL.

\ No newline at end of file +

AT&T has an ampersand in their name

+

AT&T is another way to write it

+

this & that

+

4 < 5 and 6 > 5

+

http://example.com/autolink?a=1&b=2

+

inline link

+

reference link

\ No newline at end of file diff --git a/tests/data/special_characters.md b/tests/data/special_characters.md index c82b165..440c05e 100644 --- a/tests/data/special_characters.md +++ b/tests/data/special_characters.md @@ -1,15 +1,15 @@ -AT&T has an ampersand in their name. +AT&T has an ampersand in their name -AT&T is another way to write it. +AT&T is another way to write it -This & that. +this & that -4 < 5 and 6 > 5. +4 < 5 and 6 > 5 -Here's an autolink + -Here's an inline [link](/script?a=1&b=2). +[inline link](/script?a=1&b=2) -Here's a reference [link] [1] with an ampersand in the URL. +[reference link][1] [1]: http://example.com/?a=1&b=2 \ No newline at end of file diff --git a/tests/data/text_reference.html b/tests/data/text_reference.html new file mode 100644 index 0000000..7eeecd1 --- /dev/null +++ b/tests/data/text_reference.html @@ -0,0 +1,6 @@ +

reference link

+

one with a semantic name

+

[one][404] with no definition

+

multiline +one defined on 2 lines

+

one with an upper case label

\ No newline at end of file diff --git a/tests/data/text_reference.md b/tests/data/text_reference.md new file mode 100644 index 0000000..c1ddeb1 --- /dev/null +++ b/tests/data/text_reference.md @@ -0,0 +1,16 @@ +[reference link][1] + +[1]: http://example.com + +[one][website] with a semantic name + +[website]: http://example.com + +[one][404] with no definition + +[multiline +one][website] defined on 2 lines + +[one][label] with an upper case label + +[LABEL]: http://example.com \ No newline at end of file diff --git a/tests/data/list_-_unordered.html b/tests/data/unordered_list.html similarity index 53% rename from tests/data/list_-_unordered.html rename to tests/data/unordered_list.html index b419ec4..cd95567 100644 --- a/tests/data/list_-_unordered.html +++ b/tests/data/unordered_list.html @@ -1,9 +1,8 @@ -

Here's an unordered list:

  • li
  • li
-

Here's one with mixed markers:

+

mixed markers:

  • li
  • li
  • diff --git a/tests/data/unordered_list.md b/tests/data/unordered_list.md new file mode 100644 index 0000000..cf62c99 --- /dev/null +++ b/tests/data/unordered_list.md @@ -0,0 +1,8 @@ +- li +- li + +mixed markers: + +* li ++ li +- li \ No newline at end of file diff --git a/tests/data/whitespace.html b/tests/data/whitespace.html index bc5cd2a..f2dd7a0 100644 --- a/tests/data/whitespace.html +++ b/tests/data/whitespace.html @@ -1 +1 @@ -
    This text starts with a line that consists of 4 spaces and it ends with one. This is a code block to make sure that leading spaces don't get trimmed.
    \ No newline at end of file +
    code
    \ No newline at end of file diff --git a/tests/data/whitespace.md b/tests/data/whitespace.md index 5f53a54..4cf926a 100644 --- a/tests/data/whitespace.md +++ b/tests/data/whitespace.md @@ -1,5 +1,5 @@ - This text starts with a line that consists of 4 spaces and it ends with one. This is a code block to make sure that leading spaces don't get trimmed. + code \ No newline at end of file