From bd185087dc899b6157f821fdd29561caffcc4682 Mon Sep 17 00:00:00 2001 From: Artem Yunusov Date: Thu, 31 Jul 2008 03:06:39 +0500 Subject: A lot of bug fixes, added ElementTree support for extensions, some new tests. --- tests/extensions-x-footnotes/footnote.html | 82 ++++++++++++++-------------- tests/markdown-test/angle-links-and-img.html | 7 +++ tests/markdown-test/angle-links-and-img.txt | 4 ++ tests/misc/blockquote-below-paragraph.html | 6 ++ tests/misc/blockquote-below-paragraph.txt | 3 + tests/misc/html-comments.html | 2 + tests/misc/html-comments.txt | 2 + 7 files changed, 66 insertions(+), 40 deletions(-) create mode 100755 tests/markdown-test/angle-links-and-img.html create mode 100755 tests/markdown-test/angle-links-and-img.txt create mode 100755 tests/misc/blockquote-below-paragraph.html create mode 100755 tests/misc/blockquote-below-paragraph.txt create mode 100755 tests/misc/html-comments.html create mode 100755 tests/misc/html-comments.txt (limited to 'tests') diff --git a/tests/extensions-x-footnotes/footnote.html b/tests/extensions-x-footnotes/footnote.html index de0070d..4a844be 100644 --- a/tests/extensions-x-footnotes/footnote.html +++ b/tests/extensions-x-footnotes/footnote.html @@ -1,40 +1,42 @@ -

This is the body with a footnote1 or two2 or more3 4. -

- -

    -
  1. Footnote that ends with a list: -

    -
      -
    • - item 1 -
    • - -
    • - item 2 -
    • -
    -

    -

    - -
  2. - -
  3. This footnote is a blockquote. -

    -

    -

    - -
  4. - -
  5. A simple oneliner. -

    - -
  6. - -
  7. A footnote with multiple paragraphs. -

    -

    Paragraph two. -

    - -
  8. -
-
\ No newline at end of file +

This is the body with a footnote + 1 + or two + 2 + or more + 3 + + + 4 + .

+
+
+
    +
  1. +

    Footnote that ends with a list:

    +
      +
    • item 1
    • +
    • item 2
    • +
    +

    + +

    +
  2. +
  3. +
    +

    This footnote is a blockquote.

    +
    +

    + +

    +
  4. +
  5. +

    A simple oneliner. +

    +
  6. +
  7. +

    A footnote with multiple paragraphs.

    +

    Paragraph two. +

    +
  8. +
+
diff --git a/tests/markdown-test/angle-links-and-img.html b/tests/markdown-test/angle-links-and-img.html new file mode 100755 index 0000000..e32b6e6 --- /dev/null +++ b/tests/markdown-test/angle-links-and-img.html @@ -0,0 +1,7 @@ +

+ link + image + link + image +

+ diff --git a/tests/markdown-test/angle-links-and-img.txt b/tests/markdown-test/angle-links-and-img.txt new file mode 100755 index 0000000..1dbf404 --- /dev/null +++ b/tests/markdown-test/angle-links-and-img.txt @@ -0,0 +1,4 @@ +[link]( "title") +![image]() +[link]() +![image]() diff --git a/tests/misc/blockquote-below-paragraph.html b/tests/misc/blockquote-below-paragraph.html new file mode 100755 index 0000000..5757a9a --- /dev/null +++ b/tests/misc/blockquote-below-paragraph.html @@ -0,0 +1,6 @@ +

Paragraph

+
+

Block quote +Yep

+
+ diff --git a/tests/misc/blockquote-below-paragraph.txt b/tests/misc/blockquote-below-paragraph.txt new file mode 100755 index 0000000..0dd4d5c --- /dev/null +++ b/tests/misc/blockquote-below-paragraph.txt @@ -0,0 +1,3 @@ +Paragraph +>Block quote +>Yep diff --git a/tests/misc/html-comments.html b/tests/misc/html-comments.html new file mode 100755 index 0000000..ac08082 --- /dev/null +++ b/tests/misc/html-comments.html @@ -0,0 +1,2 @@ +

Here is HTML +and once more

diff --git a/tests/misc/html-comments.txt b/tests/misc/html-comments.txt new file mode 100755 index 0000000..cac4da5 --- /dev/null +++ b/tests/misc/html-comments.txt @@ -0,0 +1,2 @@ +Here is HTML +and once more

-- cgit v1.2.3