` tags in the HTML output. For example, this input:
+
+ * Bird
+ * Magic
+
+will turn into:
+
+
+
+
+It's worth noting that it's possible to trigger an ordered list by
+accident, by writing something like this:
+
+ 1986. What a great season.
+
+In other words, a *number-period-space* sequence at the beginning of a
+line. To avoid this, you can backslash-escape the period:
+
+ 1986\. What a great season.
+
+
+
+Code Blocks
+
+Pre-formatted code blocks are used for writing about programming or
+markup source code. Rather than forming normal paragraphs, the lines
+of a code block are interpreted literally. Markdown wraps a code block
+in both `` and `` tags.
+
+To produce a code block in Markdown, simply indent every line of the
+block by at least 4 spaces or 1 tab. For example, given this input:
+
+ This is a normal paragraph:
+
+ This is a code block.
+
+Markdown will generate:
+
+ This is a normal paragraph:
+
+ This is a code block.
+
+
+One level of indentation -- 4 spaces or 1 tab -- is removed from each
+line of the code block. For example, this:
+
+ Here is an example of AppleScript:
+
+ tell application "Foo"
+ beep
+ end tell
+
+will turn into:
+
+ Here is an example of AppleScript:
+
+ tell application "Foo"
+ beep
+ end tell
+
+
+A code block continues until it reaches a line that is not indented
+(or the end of the article).
+
+Within a code block, ampersands (`&`) and angle brackets (`<` and `>`)
+are automatically converted into HTML entities. This makes it very
+easy to include example HTML source code using Markdown -- just paste
+it and indent it, and Markdown will handle the hassle of encoding the
+ampersands and angle brackets. For example, this:
+
+
+
+will turn into:
+
+ <div class="footer">
+ © 2004 Foo Corporation
+ </div>
+
+
+Regular Markdown syntax is not processed within code blocks. E.g.,
+asterisks are just literal asterisks within a code block. This means
+it's also easy to use Markdown to write about Markdown's own syntax.
+
+
+
+Horizontal Rules
+
+You can produce a horizontal rule tag (` `) by placing three or
+more hyphens, asterisks, or underscores on a line by themselves. If you
+wish, you may use spaces between the hyphens or asterisks. Each of the
+following lines will produce a horizontal rule:
+
+ * * *
+
+ ***
+
+ *****
+
+ - - -
+
+ ---------------------------------------
+
+ _ _ _
+
+
+* * *
+
+Span Elements
+
+Links
+
+Markdown supports two style of links: *inline* and *reference*.
+
+In both styles, the link text is delimited by [square brackets].
+
+To create an inline link, use a set of regular parentheses immediately
+after the link text's closing square bracket. Inside the parentheses,
+put the URL where you want the link to point, along with an *optional*
+title for the link, surrounded in quotes. For example:
+
+ This is [an example](http://example.com/ "Title") inline link.
+
+ [This link](http://example.net/) has no title attribute.
+
+Will produce:
+
+ This is
+ an example inline link.
+
+ This link has no
+ title attribute.
+
+If you're referring to a local resource on the same server, you can
+use relative paths:
+
+ See my [About](/about/) page for details.
+
+Reference-style links use a second set of square brackets, inside
+which you place a label of your choosing to identify the link:
+
+ This is [an example][id] reference-style link.
+
+You can optionally use a space to separate the sets of brackets:
+
+ This is [an example] [id] reference-style link.
+
+Then, anywhere in the document, you define your link label like this,
+on a line by itself:
+
+ [id]: http://example.com/ "Optional Title Here"
+
+That is:
+
+* Square brackets containing the link identifier (optionally
+ indented from the left margin using up to three spaces);
+* followed by a colon;
+* followed by one or more spaces (or tabs);
+* followed by the URL for the link;
+* optionally followed by a title attribute for the link, enclosed
+ in double or single quotes.
+
+The link URL may, optionally, be surrounded by angle brackets:
+
+ [id]: "Optional Title Here"
+
+You can put the title attribute on the next line and use extra spaces
+or tabs for padding, which tends to look better with longer URLs:
+
+ [id]: http://example.com/longish/path/to/resource/here
+ "Optional Title Here"
+
+Link definitions are only used for creating links during Markdown
+processing, and are stripped from your document in the HTML output.
+
+Link definition names may constist of letters, numbers, spaces, and punctuation -- but they are *not* case sensitive. E.g. these two links:
+
+ [link text][a]
+ [link text][A]
+
+are equivalent.
+
+The *implicit link name* shortcut allows you to omit the name of the
+link, in which case the link text itself is used as the name.
+Just use an empty set of square brackets -- e.g., to link the word
+"Google" to the google.com web site, you could simply write:
+
+ [Google][]
+
+And then define the link:
+
+ [Google]: http://google.com/
+
+Because link names may contain spaces, this shortcut even works for
+multiple words in the link text:
+
+ Visit [Daring Fireball][] for more information.
+
+And then define the link:
+
+ [Daring Fireball]: http://daringfireball.net/
+
+Link definitions can be placed anywhere in your Markdown document. I
+tend to put them immediately after each paragraph in which they're
+used, but if you want, you can put them all at the end of your
+document, sort of like footnotes.
+
+Here's an example of reference links in action:
+
+ I get 10 times more traffic from [Google] [1] than from
+ [Yahoo] [2] or [MSN] [3].
+
+ [1]: http://google.com/ "Google"
+ [2]: http://search.yahoo.com/ "Yahoo Search"
+ [3]: http://search.msn.com/ "MSN Search"
+
+Using the implicit link name shortcut, you could instead write:
+
+ I get 10 times more traffic from [Google][] than from
+ [Yahoo][] or [MSN][].
+
+ [google]: http://google.com/ "Google"
+ [yahoo]: http://search.yahoo.com/ "Yahoo Search"
+ [msn]: http://search.msn.com/ "MSN Search"
+
+Both of the above examples will produce the following HTML output:
+
+ I get 10 times more traffic from Google than from
+ Yahoo
+ or MSN .
+
+For comparison, here is the same paragraph written using
+Markdown's inline link style:
+
+ I get 10 times more traffic from [Google](http://google.com/ "Google")
+ than from [Yahoo](http://search.yahoo.com/ "Yahoo Search") or
+ [MSN](http://search.msn.com/ "MSN Search").
+
+The point of reference-style links is not that they're easier to
+write. The point is that with reference-style links, your document
+source is vastly more readable. Compare the above examples: using
+reference-style links, the paragraph itself is only 81 characters
+long; with inline-style links, it's 176 characters; and as raw HTML,
+it's 234 characters. In the raw HTML, there's more markup than there
+is text.
+
+With Markdown's reference-style links, a source document much more
+closely resembles the final output, as rendered in a browser. By
+allowing you to move the markup-related metadata out of the paragraph,
+you can add links without interrupting the narrative flow of your
+prose.
+
+
+Emphasis
+
+Markdown treats asterisks (`*`) and underscores (`_`) as indicators of
+emphasis. Text wrapped with one `*` or `_` will be wrapped with an
+HTML `` tag; double `*`'s or `_`'s will be wrapped with an HTML
+`` tag. E.g., this input:
+
+ *single asterisks*
+
+ _single underscores_
+
+ **double asterisks**
+
+ __double underscores__
+
+will produce:
+
+ single asterisks
+
+ single underscores
+
+ double asterisks
+
+ double underscores
+
+You can use whichever style you prefer; the lone restriction is that
+the same character must be used to open and close an emphasis span.
+
+Emphasis can be used in the middle of a word:
+
+ un*fucking*believable
+
+But if you surround an `*` or `_` with spaces, it'll be treated as a
+literal asterisk or underscore.
+
+To produce a literal asterisk or underscore at a position where it
+would otherwise be used as an emphasis delimiter, you can backslash
+escape it:
+
+ \*this text is surrounded by literal asterisks\*
+
+
+
+Code
+
+To indicate a span of code, wrap it with backtick quotes (`` ` ``).
+Unlike a pre-formatted code block, a code span indicates code within a
+normal paragraph. For example:
+
+ Use the `printf()` function.
+
+will produce:
+
+ Use the printf()
function.
+
+To include a literal backtick character within a code span, you can use
+multiple backticks as the opening and closing delimiters:
+
+ ``There is a literal backtick (`) here.``
+
+which will produce this:
+
+ There is a literal backtick (`) here.
+
+The backtick delimiters surrounding a code span may include spaces --
+one after the opening, one before the closing. This allows you to place
+literal backtick characters at the beginning or end of a code span:
+
+ A single backtick in a code span: `` ` ``
+
+ A backtick-delimited string in a code span: `` `foo` ``
+
+will produce:
+
+ A single backtick in a code span: `
+
+ A backtick-delimited string in a code span: `foo`
+
+With a code span, ampersands and angle brackets are encoded as HTML
+entities automatically, which makes it easy to include example HTML
+tags. Markdown will turn this:
+
+ Please don't use any `` tags.
+
+into:
+
+ Please don't use any <blink>
tags.
+
+You can write this:
+
+ `—` is the decimal-encoded equivalent of `—`.
+
+to produce:
+
+ —
is the decimal-encoded
+ equivalent of —
.
+
+
+
+Images
+
+Admittedly, it's fairly difficult to devise a "natural" syntax for
+placing images into a plain text document format.
+
+Markdown uses an image syntax that is intended to resemble the syntax
+for links, allowing for two styles: *inline* and *reference*.
+
+Inline image syntax looks like this:
+
+ ![Alt text](/path/to/img.jpg)
+
+ ![Alt text](/path/to/img.jpg "Optional title")
+
+That is:
+
+* An exclamation mark: `!`;
+* followed by a set of square brackets, containing the `alt`
+ attribute text for the image;
+* followed by a set of parentheses, containing the URL or path to
+ the image, and an optional `title` attribute enclosed in double
+ or single quotes.
+
+Reference-style image syntax looks like this:
+
+ ![Alt text][id]
+
+Where "id" is the name of a defined image reference. Image references
+are defined using syntax identical to link references:
+
+ [id]: url/to/image "Optional title attribute"
+
+As of this writing, Markdown has no syntax for specifying the
+dimensions of an image; if this is important to you, you can simply
+use regular HTML ` ` tags.
+
+
+* * *
+
+
+Miscellaneous
+
+Automatic Links
+
+Markdown supports a shortcut style for creating "automatic" links for URLs and email addresses: simply surround the URL or email address with angle brackets. What this means is that if you want to show the actual text of a URL or email address, and also have it be a clickable link, you can do this:
+
+
+
+Markdown will turn this into:
+
+ http://example.com/
+
+Automatic links for email addresses work similarly, except that
+Markdown will also perform a bit of randomized decimal and hex
+entity-encoding to help obscure your address from address-harvesting
+spambots. For example, Markdown will turn this:
+
+
+
+into something like this:
+
+ address@exa
+ mple.com
+
+which will render in a browser as a clickable link to "address@example.com".
+
+(This sort of entity-encoding trick will indeed fool many, if not
+most, address-harvesting bots, but it definitely won't fool all of
+them. It's better than nothing, but an address published in this way
+will probably eventually start receiving spam.)
+
+
+
+Backslash Escapes
+
+Markdown allows you to use backslash escapes to generate literal
+characters which would otherwise have special meaning in Markdown's
+formatting syntax. For example, if you wanted to surround a word with
+literal asterisks (instead of an HTML `` tag), you can backslashes
+before the asterisks, like this:
+
+ \*literal asterisks\*
+
+Markdown provides backslash escapes for the following characters:
+
+ \ backslash
+ ` backtick
+ * asterisk
+ _ underscore
+ {} curly braces
+ [] square brackets
+ () parentheses
+ # hash mark
+ + plus sign
+ - minus sign (hyphen)
+ . dot
+ ! exclamation mark
+
diff --git a/markdown/tests/pl/Tests_2007/Nested blockquotes.html b/markdown/tests/pl/Tests_2007/Nested blockquotes.html
new file mode 100644
index 0000000..d8ec7f8
--- /dev/null
+++ b/markdown/tests/pl/Tests_2007/Nested blockquotes.html
@@ -0,0 +1,9 @@
+
+ foo
+
+
+ bar
+
+
+ foo
+
diff --git a/markdown/tests/pl/Tests_2007/Nested blockquotes.text b/markdown/tests/pl/Tests_2007/Nested blockquotes.text
new file mode 100644
index 0000000..ed3c624
--- /dev/null
+++ b/markdown/tests/pl/Tests_2007/Nested blockquotes.text
@@ -0,0 +1,5 @@
+> foo
+>
+> > bar
+>
+> foo
diff --git a/markdown/tests/pl/Tests_2007/Ordered and unordered lists.html b/markdown/tests/pl/Tests_2007/Ordered and unordered lists.html
new file mode 100644
index 0000000..ba71eab
--- /dev/null
+++ b/markdown/tests/pl/Tests_2007/Ordered and unordered lists.html
@@ -0,0 +1,148 @@
+Unordered
+
+Asterisks tight:
+
+
+asterisk 1
+asterisk 2
+asterisk 3
+
+
+Asterisks loose:
+
+
+asterisk 1
+asterisk 2
+asterisk 3
+
+
+
+
+Pluses tight:
+
+
+Plus 1
+Plus 2
+Plus 3
+
+
+Pluses loose:
+
+
+Plus 1
+Plus 2
+Plus 3
+
+
+
+
+Minuses tight:
+
+
+Minus 1
+Minus 2
+Minus 3
+
+
+Minuses loose:
+
+
+Minus 1
+Minus 2
+Minus 3
+
+
+Ordered
+
+Tight:
+
+
+First
+Second
+Third
+
+
+and:
+
+
+One
+Two
+Three
+
+
+Loose using tabs:
+
+
+First
+Second
+Third
+
+
+and using spaces:
+
+
+One
+Two
+Three
+
+
+Multiple paragraphs:
+
+
+Item 1, graf one.
+
+Item 2. graf two. The quick brown fox jumped over the lazy dog's
+back.
+Item 2.
+Item 3.
+
+
+Nested
+
+
+
+Here's another:
+
+
+First
+Second:
+
+Third
+
+
+Same thing but with paragraphs:
+
+
+First
+Second:
+
+
+Third
+
+
+
+This was an error in Markdown 1.0.1:
+
+
diff --git a/markdown/tests/pl/Tests_2007/Ordered and unordered lists.text b/markdown/tests/pl/Tests_2007/Ordered and unordered lists.text
new file mode 100644
index 0000000..7f3b497
--- /dev/null
+++ b/markdown/tests/pl/Tests_2007/Ordered and unordered lists.text
@@ -0,0 +1,131 @@
+## Unordered
+
+Asterisks tight:
+
+* asterisk 1
+* asterisk 2
+* asterisk 3
+
+
+Asterisks loose:
+
+* asterisk 1
+
+* asterisk 2
+
+* asterisk 3
+
+* * *
+
+Pluses tight:
+
++ Plus 1
++ Plus 2
++ Plus 3
+
+
+Pluses loose:
+
++ Plus 1
+
++ Plus 2
+
++ Plus 3
+
+* * *
+
+
+Minuses tight:
+
+- Minus 1
+- Minus 2
+- Minus 3
+
+
+Minuses loose:
+
+- Minus 1
+
+- Minus 2
+
+- Minus 3
+
+
+## Ordered
+
+Tight:
+
+1. First
+2. Second
+3. Third
+
+and:
+
+1. One
+2. Two
+3. Three
+
+
+Loose using tabs:
+
+1. First
+
+2. Second
+
+3. Third
+
+and using spaces:
+
+1. One
+
+2. Two
+
+3. Three
+
+Multiple paragraphs:
+
+1. Item 1, graf one.
+
+ Item 2. graf two. The quick brown fox jumped over the lazy dog's
+ back.
+
+2. Item 2.
+
+3. Item 3.
+
+
+
+## Nested
+
+* Tab
+ * Tab
+ * Tab
+
+Here's another:
+
+1. First
+2. Second:
+ * Fee
+ * Fie
+ * Foe
+3. Third
+
+Same thing but with paragraphs:
+
+1. First
+
+2. Second:
+ * Fee
+ * Fie
+ * Foe
+
+3. Third
+
+
+This was an error in Markdown 1.0.1:
+
+* this
+
+ * sub
+
+ that
diff --git a/markdown/tests/pl/Tests_2007/Strong and em together.html b/markdown/tests/pl/Tests_2007/Strong and em together.html
new file mode 100644
index 0000000..71ec78c
--- /dev/null
+++ b/markdown/tests/pl/Tests_2007/Strong and em together.html
@@ -0,0 +1,7 @@
+This is strong and em.
+
+So is this word.
+
+This is strong and em.
+
+So is this word.
diff --git a/markdown/tests/pl/Tests_2007/Strong and em together.text b/markdown/tests/pl/Tests_2007/Strong and em together.text
new file mode 100644
index 0000000..95ee690
--- /dev/null
+++ b/markdown/tests/pl/Tests_2007/Strong and em together.text
@@ -0,0 +1,7 @@
+***This is strong and em.***
+
+So is ***this*** word.
+
+___This is strong and em.___
+
+So is ___this___ word.
diff --git a/markdown/tests/pl/Tests_2007/Tabs.html b/markdown/tests/pl/Tests_2007/Tabs.html
new file mode 100644
index 0000000..3301ba8
--- /dev/null
+++ b/markdown/tests/pl/Tests_2007/Tabs.html
@@ -0,0 +1,25 @@
+
+
+Code:
+
+this code block is indented by one tab
+
+
+And:
+
+ this code block is indented by two tabs
+
+
+And:
+
++ this is an example list item
+ indented with tabs
+
++ this is an example list item
+ indented with spaces
+
diff --git a/markdown/tests/pl/Tests_2007/Tabs.text b/markdown/tests/pl/Tests_2007/Tabs.text
new file mode 100644
index 0000000..589d113
--- /dev/null
+++ b/markdown/tests/pl/Tests_2007/Tabs.text
@@ -0,0 +1,21 @@
++ this is a list item
+ indented with tabs
+
++ this is a list item
+ indented with spaces
+
+Code:
+
+ this code block is indented by one tab
+
+And:
+
+ this code block is indented by two tabs
+
+And:
+
+ + this is an example list item
+ indented with tabs
+
+ + this is an example list item
+ indented with spaces
diff --git a/markdown/tests/pl/Tests_2007/Tidyness.html b/markdown/tests/pl/Tests_2007/Tidyness.html
new file mode 100644
index 0000000..f2a8ce7
--- /dev/null
+++ b/markdown/tests/pl/Tests_2007/Tidyness.html
@@ -0,0 +1,8 @@
+
+A list within a blockquote:
+
+asterisk 1
+asterisk 2
+asterisk 3
+
+
diff --git a/markdown/tests/pl/Tests_2007/Tidyness.text b/markdown/tests/pl/Tests_2007/Tidyness.text
new file mode 100644
index 0000000..5f18b8d
--- /dev/null
+++ b/markdown/tests/pl/Tests_2007/Tidyness.text
@@ -0,0 +1,5 @@
+> A list within a blockquote:
+>
+> * asterisk 1
+> * asterisk 2
+> * asterisk 3
diff --git a/markdown/tests/pl/Tests_2007/test.cfg b/markdown/tests/pl/Tests_2007/test.cfg
new file mode 100644
index 0000000..be86b6c
--- /dev/null
+++ b/markdown/tests/pl/Tests_2007/test.cfg
@@ -0,0 +1,5 @@
+[DEFAULT]
+input_ext=.text
+normalize=1
+# comment out next line to run these tests
+skip=1
--
cgit v1.2.3
From 831781c293a853d41307b4cff54c7deb4906d086 Mon Sep 17 00:00:00 2001
From: Waylan Limberg
Date: Mon, 15 Jun 2009 22:40:48 -0400
Subject: Added tests from php test framework. The tests are currently set to
be skipped as most fail on various edge cases.
---
markdown/tests/php/Auto Links.text | 3 +
markdown/tests/php/Auto Links.xhtml | 3 +
markdown/tests/php/Backslash escapes.text | 1 +
markdown/tests/php/Backslash escapes.xhtml | 1 +
markdown/tests/php/Code Spans.text | 6 +
markdown/tests/php/Code Spans.xhtml | 6 +
markdown/tests/php/Code block in a list item.text | 15 +
markdown/tests/php/Code block in a list item.xhtml | 18 ++
markdown/tests/php/Code block on second line.text | 2 +
markdown/tests/php/Code block on second line.xhtml | 2 +
markdown/tests/php/Email auto links.text | 3 +
markdown/tests/php/Email auto links.xhtml | 3 +
markdown/tests/php/Emphasis.text | 80 +++++
markdown/tests/php/Emphasis.xhtml | 83 +++++
markdown/tests/php/Empty List Item.text | 35 +++
markdown/tests/php/Empty List Item.xhtml | 47 +++
markdown/tests/php/Headers.text | 9 +
markdown/tests/php/Headers.xhtml | 39 +++
markdown/tests/php/Horizontal Rules.text | 29 ++
markdown/tests/php/Horizontal Rules.xhtml | 30 ++
markdown/tests/php/Inline HTML (Simple).text | 15 +
markdown/tests/php/Inline HTML (Simple).xhtml | 15 +
markdown/tests/php/Inline HTML (Span).text | 4 +
markdown/tests/php/Inline HTML (Span).xhtml | 4 +
markdown/tests/php/Inline HTML comments.text | 9 +
markdown/tests/php/Inline HTML comments.xhtml | 9 +
markdown/tests/php/Ins & del.text | 17 ++
markdown/tests/php/Ins & del.xhtml | 17 ++
markdown/tests/php/License | 339 +++++++++++++++++++++
markdown/tests/php/Links, inline style.text | 1 +
markdown/tests/php/Links, inline style.xhtml | 1 +
markdown/tests/php/MD5 Hashes.text | 11 +
markdown/tests/php/MD5 Hashes.xhtml | 11 +
markdown/tests/php/Mixed OLs and ULs.text | 13 +
markdown/tests/php/Mixed OLs and ULs.xhtml | 21 ++
markdown/tests/php/Nesting.text | 11 +
markdown/tests/php/Nesting.xhtml | 11 +
markdown/tests/php/PHP-Specific Bugs.text | 22 ++
markdown/tests/php/PHP-Specific Bugs.xhtml | 17 ++
markdown/tests/php/Parens in URL.text | 14 +
markdown/tests/php/Parens in URL.xhtml | 11 +
markdown/tests/php/Quotes in attributes.text | 5 +
markdown/tests/php/Quotes in attributes.xhtml | 5 +
markdown/tests/php/Tight blocks.text | 1 +
markdown/tests/php/Tight blocks.xhtml | 21 ++
markdown/tests/php/extra/Abbr.text | 31 ++
markdown/tests/php/extra/Abbr.xhtml | 15 +
markdown/tests/php/extra/Definition Lists.text | 115 +++++++
markdown/tests/php/extra/Definition Lists.xhtml | 155 ++++++++++
markdown/tests/php/extra/Emphasis.text | 80 +++++
markdown/tests/php/extra/Emphasis.xhtml | 83 +++++
markdown/tests/php/extra/Fenced Code Blocks.text | 60 ++++
markdown/tests/php/extra/Fenced Code Blocks.xhtml | 53 ++++
markdown/tests/php/extra/Footnotes.text | 61 ++++
markdown/tests/php/extra/Footnotes.xhtml | 96 ++++++
.../extra/Inline HTML with Markdown content.text | 104 +++++++
.../extra/Inline HTML with Markdown content.xhtml | 125 ++++++++
markdown/tests/php/extra/Tables.text | 104 +++++++
markdown/tests/php/extra/Tables.xhtml | 310 +++++++++++++++++++
markdown/tests/php/extra/test.cfg | 6 +
markdown/tests/php/test.cfg | 5 +
61 files changed, 2423 insertions(+)
create mode 100644 markdown/tests/php/Auto Links.text
create mode 100644 markdown/tests/php/Auto Links.xhtml
create mode 100644 markdown/tests/php/Backslash escapes.text
create mode 100644 markdown/tests/php/Backslash escapes.xhtml
create mode 100644 markdown/tests/php/Code Spans.text
create mode 100644 markdown/tests/php/Code Spans.xhtml
create mode 100644 markdown/tests/php/Code block in a list item.text
create mode 100644 markdown/tests/php/Code block in a list item.xhtml
create mode 100644 markdown/tests/php/Code block on second line.text
create mode 100644 markdown/tests/php/Code block on second line.xhtml
create mode 100644 markdown/tests/php/Email auto links.text
create mode 100644 markdown/tests/php/Email auto links.xhtml
create mode 100644 markdown/tests/php/Emphasis.text
create mode 100644 markdown/tests/php/Emphasis.xhtml
create mode 100644 markdown/tests/php/Empty List Item.text
create mode 100644 markdown/tests/php/Empty List Item.xhtml
create mode 100644 markdown/tests/php/Headers.text
create mode 100644 markdown/tests/php/Headers.xhtml
create mode 100644 markdown/tests/php/Horizontal Rules.text
create mode 100644 markdown/tests/php/Horizontal Rules.xhtml
create mode 100644 markdown/tests/php/Inline HTML (Simple).text
create mode 100644 markdown/tests/php/Inline HTML (Simple).xhtml
create mode 100644 markdown/tests/php/Inline HTML (Span).text
create mode 100644 markdown/tests/php/Inline HTML (Span).xhtml
create mode 100644 markdown/tests/php/Inline HTML comments.text
create mode 100644 markdown/tests/php/Inline HTML comments.xhtml
create mode 100644 markdown/tests/php/Ins & del.text
create mode 100644 markdown/tests/php/Ins & del.xhtml
create mode 100644 markdown/tests/php/License
create mode 100644 markdown/tests/php/Links, inline style.text
create mode 100644 markdown/tests/php/Links, inline style.xhtml
create mode 100644 markdown/tests/php/MD5 Hashes.text
create mode 100644 markdown/tests/php/MD5 Hashes.xhtml
create mode 100644 markdown/tests/php/Mixed OLs and ULs.text
create mode 100644 markdown/tests/php/Mixed OLs and ULs.xhtml
create mode 100644 markdown/tests/php/Nesting.text
create mode 100644 markdown/tests/php/Nesting.xhtml
create mode 100644 markdown/tests/php/PHP-Specific Bugs.text
create mode 100644 markdown/tests/php/PHP-Specific Bugs.xhtml
create mode 100644 markdown/tests/php/Parens in URL.text
create mode 100644 markdown/tests/php/Parens in URL.xhtml
create mode 100644 markdown/tests/php/Quotes in attributes.text
create mode 100644 markdown/tests/php/Quotes in attributes.xhtml
create mode 100644 markdown/tests/php/Tight blocks.text
create mode 100644 markdown/tests/php/Tight blocks.xhtml
create mode 100644 markdown/tests/php/extra/Abbr.text
create mode 100644 markdown/tests/php/extra/Abbr.xhtml
create mode 100644 markdown/tests/php/extra/Definition Lists.text
create mode 100644 markdown/tests/php/extra/Definition Lists.xhtml
create mode 100644 markdown/tests/php/extra/Emphasis.text
create mode 100644 markdown/tests/php/extra/Emphasis.xhtml
create mode 100644 markdown/tests/php/extra/Fenced Code Blocks.text
create mode 100644 markdown/tests/php/extra/Fenced Code Blocks.xhtml
create mode 100644 markdown/tests/php/extra/Footnotes.text
create mode 100644 markdown/tests/php/extra/Footnotes.xhtml
create mode 100644 markdown/tests/php/extra/Inline HTML with Markdown content.text
create mode 100644 markdown/tests/php/extra/Inline HTML with Markdown content.xhtml
create mode 100644 markdown/tests/php/extra/Tables.text
create mode 100644 markdown/tests/php/extra/Tables.xhtml
create mode 100644 markdown/tests/php/extra/test.cfg
create mode 100644 markdown/tests/php/test.cfg
diff --git a/markdown/tests/php/Auto Links.text b/markdown/tests/php/Auto Links.text
new file mode 100644
index 0000000..4b10d32
--- /dev/null
+++ b/markdown/tests/php/Auto Links.text
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/markdown/tests/php/Auto Links.xhtml b/markdown/tests/php/Auto Links.xhtml
new file mode 100644
index 0000000..259c47f
--- /dev/null
+++ b/markdown/tests/php/Auto Links.xhtml
@@ -0,0 +1,3 @@
+HTTP://WWW.SOMEURL.COM
+
+hr@company.com
\ No newline at end of file
diff --git a/markdown/tests/php/Backslash escapes.text b/markdown/tests/php/Backslash escapes.text
new file mode 100644
index 0000000..a5e769b
--- /dev/null
+++ b/markdown/tests/php/Backslash escapes.text
@@ -0,0 +1 @@
+Tricky combinaisons:
backslash with \\-- two dashes
backslash with \\> greater than
\\\[test](not a link)
\\\*no emphasis*
\ No newline at end of file
diff --git a/markdown/tests/php/Backslash escapes.xhtml b/markdown/tests/php/Backslash escapes.xhtml
new file mode 100644
index 0000000..08fb8ef
--- /dev/null
+++ b/markdown/tests/php/Backslash escapes.xhtml
@@ -0,0 +1 @@
+Tricky combinaisons:
backslash with \-- two dashes
backslash with \> greater than
\[test](not a link)
\*no emphasis*
\ No newline at end of file
diff --git a/markdown/tests/php/Code Spans.text b/markdown/tests/php/Code Spans.text
new file mode 100644
index 0000000..43f2bcf
--- /dev/null
+++ b/markdown/tests/php/Code Spans.text
@@ -0,0 +1,6 @@
+From ``
+on two lines.
+
+From ``
+on three lines.
diff --git a/markdown/tests/php/Code Spans.xhtml b/markdown/tests/php/Code Spans.xhtml
new file mode 100644
index 0000000..9ed0df8
--- /dev/null
+++ b/markdown/tests/php/Code Spans.xhtml
@@ -0,0 +1,6 @@
+From <!--
to -->
+on two lines.
+
+From <!--
+to -->
+on three lines.
diff --git a/markdown/tests/php/Code block in a list item.text b/markdown/tests/php/Code block in a list item.text
new file mode 100644
index 0000000..5093348
--- /dev/null
+++ b/markdown/tests/php/Code block in a list item.text
@@ -0,0 +1,15 @@
+
+* List Item:
+
+ code block
+
+ with a blank line
+
+ within a list item.
+
+* code block
+ as first element of a list item
+
+* List Item:
+
+ code block with whitespace on preceding line
\ No newline at end of file
diff --git a/markdown/tests/php/Code block in a list item.xhtml b/markdown/tests/php/Code block in a list item.xhtml
new file mode 100644
index 0000000..361c1ae
--- /dev/null
+++ b/markdown/tests/php/Code block in a list item.xhtml
@@ -0,0 +1,18 @@
+
+List Item:
+
+code block
+
+with a blank line
+
+
+within a list item.
+code block
+as first element of a list item
+
+
+List Item:
+
+code block with whitespace on preceding line
+
+
\ No newline at end of file
diff --git a/markdown/tests/php/Code block on second line.text b/markdown/tests/php/Code block on second line.text
new file mode 100644
index 0000000..b7fcd97
--- /dev/null
+++ b/markdown/tests/php/Code block on second line.text
@@ -0,0 +1,2 @@
+
+ Codeblock on second line
diff --git a/markdown/tests/php/Code block on second line.xhtml b/markdown/tests/php/Code block on second line.xhtml
new file mode 100644
index 0000000..25abb16
--- /dev/null
+++ b/markdown/tests/php/Code block on second line.xhtml
@@ -0,0 +1,2 @@
+Codeblock on second line
+
diff --git a/markdown/tests/php/Email auto links.text b/markdown/tests/php/Email auto links.text
new file mode 100644
index 0000000..a8af4ec
--- /dev/null
+++ b/markdown/tests/php/Email auto links.text
@@ -0,0 +1,3 @@
+
+
+International domain names:
\ No newline at end of file
diff --git a/markdown/tests/php/Email auto links.xhtml b/markdown/tests/php/Email auto links.xhtml
new file mode 100644
index 0000000..a32c408
--- /dev/null
+++ b/markdown/tests/php/Email auto links.xhtml
@@ -0,0 +1,3 @@
+michel.fortin@michelf.com
+
+International domain names: help@tūdaliņ.lv
diff --git a/markdown/tests/php/Emphasis.text b/markdown/tests/php/Emphasis.text
new file mode 100644
index 0000000..88e93d4
--- /dev/null
+++ b/markdown/tests/php/Emphasis.text
@@ -0,0 +1,80 @@
+Combined emphasis:
+
+1. ***test test***
+2. ___test test___
+3. *test **test***
+4. **test *test***
+5. ***test* test**
+6. ***test** test*
+7. ***test* test**
+8. **test *test***
+9. *test **test***
+10. _test __test___
+11. __test _test___
+12. ___test_ test__
+13. ___test__ test_
+14. ___test_ test__
+15. __test _test___
+16. _test __test___
+
+
+Incorrect nesting:
+
+1. *test **test* test**
+2. _test __test_ test__
+3. **test *test** test*
+4. __test _test__ test_
+5. *test *test* test*
+6. _test _test_ test_
+7. **test **test** test**
+8. __test __test__ test__
+
+
+
+No emphasis:
+
+1. test* test *test
+2. test** test **test
+3. test_ test _test
+4. test__ test __test
+
+
+
+Middle-word emphasis (asterisks):
+
+1. *a*b
+2. a*b*
+3. a*b*c
+4. **a**b
+5. a**b**
+6. a**b**c
+
+
+Middle-word emphasis (underscore):
+
+1. _a_b
+2. a_b_
+3. a_b_c
+4. __a__b
+5. a__b__
+6. a__b__c
+
+my_precious_file.txt
+
+
+## Tricky Cases
+
+E**. **Test** TestTestTest
+
+E**. **Test** Test Test Test
+
+
+## Overlong emphasis
+
+Name: ____________
+Organization: ____
+Region/Country: __
+
+_____Cut here_____
+
+____Cut here____
diff --git a/markdown/tests/php/Emphasis.xhtml b/markdown/tests/php/Emphasis.xhtml
new file mode 100644
index 0000000..4879070
--- /dev/null
+++ b/markdown/tests/php/Emphasis.xhtml
@@ -0,0 +1,83 @@
+Combined emphasis:
+
+
+test test
+test test
+test test
+test test
+test test
+test test
+test test
+test test
+test test
+test test
+test test
+test test
+test test
+test test
+test test
+test test
+
+
+Incorrect nesting:
+
+
+*test test* test
+_test test_ test
+test *test test*
+test _test test_
+test *test test*
+test _test test_
+test **test test**
+test __test test__
+
+
+No emphasis:
+
+
+test* test *test
+test** test **test
+test_ test _test
+test__ test __test
+
+
+Middle-word emphasis (asterisks):
+
+
+a b
+ab
+ab c
+a b
+ab
+ab c
+
+
+Middle-word emphasis (underscore):
+
+
+a b
+ab
+ab c
+a b
+ab
+ab c
+
+
+myprecious file.txt
+
+Tricky Cases
+
+E**. Test TestTestTest
+
+E**. Test Test Test Test
+
+
+Overlong emphasis
+
+Name: ____________
+Organization: ____
+Region/Country: __
+
+_____Cut here_____
+
+____Cut here____
\ No newline at end of file
diff --git a/markdown/tests/php/Empty List Item.text b/markdown/tests/php/Empty List Item.text
new file mode 100644
index 0000000..3c4edba
--- /dev/null
+++ b/markdown/tests/php/Empty List Item.text
@@ -0,0 +1,35 @@
+With asterisks
+
+ * List item
+ *
+ * List item
+
+With numbers
+
+1. List item
+2.
+3. List item
+
+With hyphens
+
+- List item
+-
+- List item
+
+With asterisks
+
+ * List item
+ * List item
+ *
+
+With numbers
+
+1. List item
+2. List item
+3.
+
+With hyphens
+
+- List item
+- List item
+-
diff --git a/markdown/tests/php/Empty List Item.xhtml b/markdown/tests/php/Empty List Item.xhtml
new file mode 100644
index 0000000..02d86ed
--- /dev/null
+++ b/markdown/tests/php/Empty List Item.xhtml
@@ -0,0 +1,47 @@
+With asterisks
+
+
+List item
+
+List item
+
+
+With numbers
+
+
+List item
+
+List item
+
+
+With hyphens
+
+
+List item
+
+List item
+
+
+With asterisks
+
+
+List item
+List item
+
+
+
+With numbers
+
+
+List item
+List item
+
+
+
+With hyphens
+
+
+List item
+List item
+
+
\ No newline at end of file
diff --git a/markdown/tests/php/Headers.text b/markdown/tests/php/Headers.text
new file mode 100644
index 0000000..3a39174
--- /dev/null
+++ b/markdown/tests/php/Headers.text
@@ -0,0 +1,9 @@
+Header
======
Header
------
### Header
+
+ - - -
+
+Header
======
Paragraph
Header
------
Paragraph
### Header
Paragraph
+
+ - - -
+
+Paragraph
Header
======
Paragraph
Paragraph
Header
------
Paragraph
Paragraph
### Header
Paragraph
\ No newline at end of file
diff --git a/markdown/tests/php/Headers.xhtml b/markdown/tests/php/Headers.xhtml
new file mode 100644
index 0000000..3adb470
--- /dev/null
+++ b/markdown/tests/php/Headers.xhtml
@@ -0,0 +1,39 @@
+Header
+
+Header
+
+Header
+
+
+
+Header
+
+Paragraph
+
+Header
+
+Paragraph
+
+Header
+
+Paragraph
+
+
+
+Paragraph
+
+Header
+
+Paragraph
+
+Paragraph
+
+Header
+
+Paragraph
+
+Paragraph
+
+Header
+
+Paragraph
diff --git a/markdown/tests/php/Horizontal Rules.text b/markdown/tests/php/Horizontal Rules.text
new file mode 100644
index 0000000..8e2da0b
--- /dev/null
+++ b/markdown/tests/php/Horizontal Rules.text
@@ -0,0 +1,29 @@
+Horizontal rules:
+
+- - -
+
+* * *
+
+***
+
+---
+
+___
+
+Not horizontal rules (testing for a bug in 1.0.1j):
+
++++
+
+,,,
+
+===
+
+???
+
+AAA
+
+jjj
+
+j j j
+
+n n n
diff --git a/markdown/tests/php/Horizontal Rules.xhtml b/markdown/tests/php/Horizontal Rules.xhtml
new file mode 100644
index 0000000..b9170b1
--- /dev/null
+++ b/markdown/tests/php/Horizontal Rules.xhtml
@@ -0,0 +1,30 @@
+Horizontal rules:
+
+
+
+
+
+
+
+
+
+
+
+Not horizontal rules (testing for a bug in 1.0.1j):
+
++++
+
+,,,
+
+===
+
+???
+
+AAA
+
+jjj
+
+j j j
+
+n n n
+
diff --git a/markdown/tests/php/Inline HTML (Simple).text b/markdown/tests/php/Inline HTML (Simple).text
new file mode 100644
index 0000000..9177105
--- /dev/null
+++ b/markdown/tests/php/Inline HTML (Simple).text
@@ -0,0 +1,15 @@
+With some attributes:
+
+
+ foo
+
+
+
+ foo
+
+
+Hr's:
+
+
diff --git a/markdown/tests/php/Inline HTML (Simple).xhtml b/markdown/tests/php/Inline HTML (Simple).xhtml
new file mode 100644
index 0000000..facfefb
--- /dev/null
+++ b/markdown/tests/php/Inline HTML (Simple).xhtml
@@ -0,0 +1,15 @@
+With some attributes:
+
+
+ foo
+
+
+
+ foo
+
+
+Hr's:
+
+
\ No newline at end of file
diff --git a/markdown/tests/php/Inline HTML (Span).text b/markdown/tests/php/Inline HTML (Span).text
new file mode 100644
index 0000000..19028bb
--- /dev/null
+++ b/markdown/tests/php/Inline HTML (Span).text
@@ -0,0 +1,4 @@
+ACINACS
+
+SB
+SB
\ No newline at end of file
diff --git a/markdown/tests/php/Inline HTML (Span).xhtml b/markdown/tests/php/Inline HTML (Span).xhtml
new file mode 100644
index 0000000..4d18aff
--- /dev/null
+++ b/markdown/tests/php/Inline HTML (Span).xhtml
@@ -0,0 +1,4 @@
+ACINACS
+
+SB
+SB
\ No newline at end of file
diff --git a/markdown/tests/php/Inline HTML comments.text b/markdown/tests/php/Inline HTML comments.text
new file mode 100644
index 0000000..d57d00a
--- /dev/null
+++ b/markdown/tests/php/Inline HTML comments.text
@@ -0,0 +1,9 @@
+Paragraph one.
+
+
+
+Paragraph two.
+
+
+
+The end.
diff --git a/markdown/tests/php/Inline HTML comments.xhtml b/markdown/tests/php/Inline HTML comments.xhtml
new file mode 100644
index 0000000..b45f014
--- /dev/null
+++ b/markdown/tests/php/Inline HTML comments.xhtml
@@ -0,0 +1,9 @@
+Paragraph one.
+
+
+
+Paragraph two.
+
+
+
+The end.
diff --git a/markdown/tests/php/Ins & del.text b/markdown/tests/php/Ins & del.text
new file mode 100644
index 0000000..2d54c66
--- /dev/null
+++ b/markdown/tests/php/Ins & del.text
@@ -0,0 +1,17 @@
+Here is a block tag ins:
+
+
+Some text
+
+
+And here it is inside a paragraph.
+
+And here it is in the middle of a paragraph.
+
+
+Some text
+
+
+And here is ins as a paragraph.
+
+And here it is in the middle of a paragraph.
diff --git a/markdown/tests/php/Ins & del.xhtml b/markdown/tests/php/Ins & del.xhtml
new file mode 100644
index 0000000..60e8c5f
--- /dev/null
+++ b/markdown/tests/php/Ins & del.xhtml
@@ -0,0 +1,17 @@
+Here is a block tag ins:
+
+
+Some text
+
+
+And here it is inside a paragraph.
+
+And here it is in the middle of a paragraph.
+
+
+Some text
+
+
+And here is ins as a paragraph.
+
+And here it is in the middle of a paragraph.
diff --git a/markdown/tests/php/License b/markdown/tests/php/License
new file mode 100644
index 0000000..d511905
--- /dev/null
+++ b/markdown/tests/php/License
@@ -0,0 +1,339 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ , 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/markdown/tests/php/Links, inline style.text b/markdown/tests/php/Links, inline style.text
new file mode 100644
index 0000000..600a044
--- /dev/null
+++ b/markdown/tests/php/Links, inline style.text
@@ -0,0 +1 @@
+[silly URL w/ angle brackets](}]*+|&)>).
diff --git a/markdown/tests/php/Links, inline style.xhtml b/markdown/tests/php/Links, inline style.xhtml
new file mode 100644
index 0000000..d3e4d11
--- /dev/null
+++ b/markdown/tests/php/Links, inline style.xhtml
@@ -0,0 +1 @@
+silly URL w/ angle brackets .
diff --git a/markdown/tests/php/MD5 Hashes.text b/markdown/tests/php/MD5 Hashes.text
new file mode 100644
index 0000000..7e03221
--- /dev/null
+++ b/markdown/tests/php/MD5 Hashes.text
@@ -0,0 +1,11 @@
+# Character Escapes
+
+The MD5 value for `+` is "26b17225b626fb9238849fd60eabdf60".
+
+# HTML Blocks
+
+test
+
+The MD5 value for `test
` is:
+
+6205333b793f34273d75379350b36826
\ No newline at end of file
diff --git a/markdown/tests/php/MD5 Hashes.xhtml b/markdown/tests/php/MD5 Hashes.xhtml
new file mode 100644
index 0000000..894e4aa
--- /dev/null
+++ b/markdown/tests/php/MD5 Hashes.xhtml
@@ -0,0 +1,11 @@
+Character Escapes
+
+The MD5 value for +
is "26b17225b626fb9238849fd60eabdf60".
+
+HTML Blocks
+
+test
+
+The MD5 value for <p>test</p>
is:
+
+6205333b793f34273d75379350b36826
diff --git a/markdown/tests/php/Mixed OLs and ULs.text b/markdown/tests/php/Mixed OLs and ULs.text
new file mode 100644
index 0000000..cecde21
--- /dev/null
+++ b/markdown/tests/php/Mixed OLs and ULs.text
@@ -0,0 +1,13 @@
+* test
++ test
+- test
+
+1. test
+2. test
+
+* test
++ test
+- test
+
+1. test
+2. test
diff --git a/markdown/tests/php/Mixed OLs and ULs.xhtml b/markdown/tests/php/Mixed OLs and ULs.xhtml
new file mode 100644
index 0000000..0872aaa
--- /dev/null
+++ b/markdown/tests/php/Mixed OLs and ULs.xhtml
@@ -0,0 +1,21 @@
+
+
+
+test
+test
+
+
+
+
+
+test
+test
+
diff --git a/markdown/tests/php/Nesting.text b/markdown/tests/php/Nesting.text
new file mode 100644
index 0000000..791538c
--- /dev/null
+++ b/markdown/tests/php/Nesting.text
@@ -0,0 +1,11 @@
+Valid nesting:
+
+**[Link](url)**
+
+[**Link**](url)
+
+**[**Link**](url)**
+
+Invalid nesting:
+
+[[Link](url)](url)
\ No newline at end of file
diff --git a/markdown/tests/php/Nesting.xhtml b/markdown/tests/php/Nesting.xhtml
new file mode 100644
index 0000000..37845d3
--- /dev/null
+++ b/markdown/tests/php/Nesting.xhtml
@@ -0,0 +1,11 @@
+Valid nesting:
+
+Link
+
+Link
+
+Link
+
+Invalid nesting:
+
+[Link](url)
diff --git a/markdown/tests/php/PHP-Specific Bugs.text b/markdown/tests/php/PHP-Specific Bugs.text
new file mode 100644
index 0000000..246b60d
--- /dev/null
+++ b/markdown/tests/php/PHP-Specific Bugs.text
@@ -0,0 +1,22 @@
+This tests for a bug where quotes escaped by PHP when using
+`preg_replace` with the `/e` modifier must be correctly unescaped
+(hence the `_UnslashQuotes` function found only in PHP Markdown).
+
+
+
+Headers below should appear exactly as they are typed (no backslash
+added or removed).
+
+Header "quoted\" again \\""
+===========================
+
+Header "quoted\" again \\""
+---------------------------
+
+### Header "quoted\" again \\"" ###
+
+
+
+Test with tabs for `_Detab`:
+
+ Code 'block' with some "tabs" and "quotes"
diff --git a/markdown/tests/php/PHP-Specific Bugs.xhtml b/markdown/tests/php/PHP-Specific Bugs.xhtml
new file mode 100644
index 0000000..c982417
--- /dev/null
+++ b/markdown/tests/php/PHP-Specific Bugs.xhtml
@@ -0,0 +1,17 @@
+This tests for a bug where quotes escaped by PHP when using
+preg_replace
with the /e
modifier must be correctly unescaped
+(hence the _UnslashQuotes
function found only in PHP Markdown).
+
+Headers below should appear exactly as they are typed (no backslash
+added or removed).
+
+Header "quoted\" again \""
+
+Header "quoted\" again \""
+
+Header "quoted\" again \""
+
+Test with tabs for _Detab
:
+
+Code 'block' with some "tabs" and "quotes"
+
diff --git a/markdown/tests/php/Parens in URL.text b/markdown/tests/php/Parens in URL.text
new file mode 100644
index 0000000..bb7be4f
--- /dev/null
+++ b/markdown/tests/php/Parens in URL.text
@@ -0,0 +1,14 @@
+[Inline link 1 with parens](/url\(test\) "title").
+
+[Inline link 2 with parens]( "title").
+
+[Inline link 3 with non-escaped parens](/url(test) "title").
+
+[Inline link 4 with non-escaped parens]( "title").
+
+[Reference link 1 with parens][1].
+
+[Reference link 2 with parens][2].
+
+ [1]: /url(test) "title"
+ [2]: "title"
diff --git a/markdown/tests/php/Parens in URL.xhtml b/markdown/tests/php/Parens in URL.xhtml
new file mode 100644
index 0000000..a81aa02
--- /dev/null
+++ b/markdown/tests/php/Parens in URL.xhtml
@@ -0,0 +1,11 @@
+Inline link 1 with parens .
+
+Inline link 2 with parens .
+
+Inline link 3 with non-escaped parens .
+
+Inline link 4 with non-escaped parens .
+
+Reference link 1 with parens .
+
+Reference link 2 with parens .
\ No newline at end of file
diff --git a/markdown/tests/php/Quotes in attributes.text b/markdown/tests/php/Quotes in attributes.text
new file mode 100644
index 0000000..9792286
--- /dev/null
+++ b/markdown/tests/php/Quotes in attributes.text
@@ -0,0 +1,5 @@
+[Test](/"style="color:red)
+[Test](/'style='color:red)
+
+![](/"style="border-color:red;border-size:1px;border-style:solid)
+![](/'style='border-color:red;border-size:1px;border-style:solid)
diff --git a/markdown/tests/php/Quotes in attributes.xhtml b/markdown/tests/php/Quotes in attributes.xhtml
new file mode 100644
index 0000000..e3fcfd2
--- /dev/null
+++ b/markdown/tests/php/Quotes in attributes.xhtml
@@ -0,0 +1,5 @@
+Test
+Test
+
+
+
diff --git a/markdown/tests/php/Tight blocks.text b/markdown/tests/php/Tight blocks.text
new file mode 100644
index 0000000..ae4cdcb
--- /dev/null
+++ b/markdown/tests/php/Tight blocks.text
@@ -0,0 +1 @@
+Paragraph and no space:
* ciao
Paragraph and 1 space:
* ciao
Paragraph and 3 spaces:
* ciao
Paragraph and 4 spaces:
* ciao
Paragraph before header:
#Header
Paragraph before blockquote:
>Some quote.
\ No newline at end of file
diff --git a/markdown/tests/php/Tight blocks.xhtml b/markdown/tests/php/Tight blocks.xhtml
new file mode 100644
index 0000000..8655430
--- /dev/null
+++ b/markdown/tests/php/Tight blocks.xhtml
@@ -0,0 +1,21 @@
+Paragraph and no space:
+* ciao
+
+Paragraph and 1 space:
+ * ciao
+
+Paragraph and 3 spaces:
+ * ciao
+
+Paragraph and 4 spaces:
+ * ciao
+
+Paragraph before header:
+
+Header
+
+Paragraph before blockquote:
+
+
+ Some quote.
+
diff --git a/markdown/tests/php/extra/Abbr.text b/markdown/tests/php/extra/Abbr.text
new file mode 100644
index 0000000..ae72f4e
--- /dev/null
+++ b/markdown/tests/php/extra/Abbr.text
@@ -0,0 +1,31 @@
+Some text about HTML, SGML and HTML4.
+
+Let's talk about the U.S.A., (É.U. or É.-U. d'A. in French).
+
+*[HTML4]: Hyper Text Markup Language version 4
+*[HTML]: Hyper Text Markup Language
+*[SGML]: Standard Generalized Markup Language
+*[U.S.A.]: United States of America
+*[É.U.] : États-Unis d'Amérique
+*[É.-U. d'A.] : États-Unis d'Amérique
+
+And here we have a CD, some CDs, and some other CD's.
+
+*[CD]: Compact Disk
+
+Let's transfert documents through TCP/IP, using TCP packets.
+
+*[IP]: Internet Protocol
+*[TCP]: Transmission Control Protocol
+
+ ---
+
+Bienvenue sur [CMS](http://www.bidulecms.com "Bidule CMS").
+
+*[CMS]: Content Management System
+
+ ---
+
+ATCCE
+
+*[ATCCE]: Abbreviation "Testing" Correct 'Character' < Escapes >
\ No newline at end of file
diff --git a/markdown/tests/php/extra/Abbr.xhtml b/markdown/tests/php/extra/Abbr.xhtml
new file mode 100644
index 0000000..8beaa2e
--- /dev/null
+++ b/markdown/tests/php/extra/Abbr.xhtml
@@ -0,0 +1,15 @@
+Some text about HTML , SGML and HTML4 .
+
+Let's talk about the U.S.A. , (É.U. or É.-U. d'A. in French).
+
+And here we have a CD , some CDs, and some other CD 's.
+
+Let's transfert documents through TCP /IP , using TCP packets.
+
+
+
+Bienvenue sur CMS .
+
+
+
+ATCCE
diff --git a/markdown/tests/php/extra/Definition Lists.text b/markdown/tests/php/extra/Definition Lists.text
new file mode 100644
index 0000000..5b3bdb6
--- /dev/null
+++ b/markdown/tests/php/extra/Definition Lists.text
@@ -0,0 +1,115 @@
+A simple definition list:
+
+Term 1
+: Definition 1
+
+Term 2
+: Definition 2
+
+With multiple terms:
+
+Term 1
+Term 2
+: Definition 1
+
+Term 3
+Term 4
+: Definition 2
+
+With multiple definitions:
+
+Term 1
+: Definition 1
+: Definition 2
+
+Term 2
+: Definition 3
+: Definition 4
+
+With multiple lines per definition:
+
+Term 1
+: Definition 1 line 1 ...
+Definition 1 line 2
+: Definition 2 line 1 ...
+Definition 2 line 2
+
+Term 2
+: Definition 3 line 2 ...
+ Definition 3 line 2
+: Definition 4 line 2 ...
+ Definition 4 line 2
+
+With paragraphs:
+
+Term 1
+
+: Definition 1 (paragraph)
+
+Term 2
+
+: Definition 2 (paragraph)
+
+With multiple paragraphs:
+
+Term 1
+
+: Definition 1 paragraph 1 line 1 ...
+ Definition 1 paragraph 1 line 2
+
+ Definition 1 paragraph 2 line 1 ...
+ Definition 1 paragraph 2 line 2
+
+Term 2
+
+: Definition 1 paragraph 1 line 1 ...
+Definition 1 paragraph 1 line 2 (lazy)
+
+ Definition 1 paragraph 2 line 1 ...
+Definition 1 paragraph 2 line 2 (lazy)
+
+* * *
+
+A mix:
+
+Term 1
+Term 2
+
+: Definition 1 paragraph 1 line 1 ...
+Definition 1 paragraph 1 line 2 (lazy)
+
+ Definition 1 paragraph 2 line 1 ...
+ Definition 1 paragraph 2 line 2
+
+: Definition 2 paragraph 1 line 1 ...
+Definition 2 paragraph 1 line 2 (lazy)
+
+Term 3
+: Definition 3 (no paragraph)
+: Definition 4 (no paragraph)
+: Definition 5 line 1 ...
+ Definition 5 line 2 (no paragraph)
+
+: Definition 6 paragraph 1 line 1 ...
+Definition 6 paragraph 1 line 2
+: Definition 7 (no paragraph)
+: Definition 8 paragraph 1 line 1 (forced paragraph) ...
+ Definition 8 paragraph 1 line 2
+
+ Definition 8 paragraph 2 line 1
+
+Term 4
+: Definition 9 paragraph 1 line 1 (forced paragraph) ...
+ Definition 9 paragraph 1 line 2
+
+ Definition 9 paragraph 2 line 1
+: Definition 10 (no paragraph)
+
+* * *
+
+Special cases:
+
+Term
+
+: code block
+ as first element of a definition
\ No newline at end of file
diff --git a/markdown/tests/php/extra/Definition Lists.xhtml b/markdown/tests/php/extra/Definition Lists.xhtml
new file mode 100644
index 0000000..f99f456
--- /dev/null
+++ b/markdown/tests/php/extra/Definition Lists.xhtml
@@ -0,0 +1,155 @@
+A simple definition list:
+
+
+Term 1
+Definition 1
+
+Term 2
+Definition 2
+
+
+With multiple terms:
+
+
+Term 1
+Term 2
+Definition 1
+
+Term 3
+Term 4
+Definition 2
+
+
+With multiple definitions:
+
+
+Term 1
+Definition 1
+
+Definition 2
+
+Term 2
+Definition 3
+
+Definition 4
+
+
+With multiple lines per definition:
+
+
+Term 1
+Definition 1 line 1 ...
+Definition 1 line 2
+
+Definition 2 line 1 ...
+Definition 2 line 2
+
+Term 2
+Definition 3 line 2 ...
+Definition 3 line 2
+
+Definition 4 line 2 ...
+Definition 4 line 2
+
+
+With paragraphs:
+
+
+Term 1
+
+Definition 1 (paragraph)
+
+
+Term 2
+
+Definition 2 (paragraph)
+
+
+
+With multiple paragraphs:
+
+
+Term 1
+
+Definition 1 paragraph 1 line 1 ...
+Definition 1 paragraph 1 line 2
+
+Definition 1 paragraph 2 line 1 ...
+Definition 1 paragraph 2 line 2
+
+
+Term 2
+
+Definition 1 paragraph 1 line 1 ...
+Definition 1 paragraph 1 line 2 (lazy)
+
+Definition 1 paragraph 2 line 1 ...
+Definition 1 paragraph 2 line 2 (lazy)
+
+
+
+
+
+A mix:
+
+
+Term 1
+Term 2
+
+Definition 1 paragraph 1 line 1 ...
+Definition 1 paragraph 1 line 2 (lazy)
+
+Definition 1 paragraph 2 line 1 ...
+Definition 1 paragraph 2 line 2
+
+
+
+Definition 2 paragraph 1 line 1 ...
+Definition 2 paragraph 1 line 2 (lazy)
+
+
+Term 3
+Definition 3 (no paragraph)
+
+Definition 4 (no paragraph)
+
+Definition 5 line 1 ...
+Definition 5 line 2 (no paragraph)
+
+
+Definition 6 paragraph 1 line 1 ...
+Definition 6 paragraph 1 line 2
+
+
+Definition 7 (no paragraph)
+
+
+Definition 8 paragraph 1 line 1 (forced paragraph) ...
+Definition 8 paragraph 1 line 2
+
+Definition 8 paragraph 2 line 1
+
+
+Term 4
+
+Definition 9 paragraph 1 line 1 (forced paragraph) ...
+Definition 9 paragraph 1 line 2
+
+Definition 9 paragraph 2 line 1
+
+
+Definition 10 (no paragraph)
+
+
+
+
+Special cases:
+
+
+Term
+
+code block
+as first element of a definition
+
+
+
diff --git a/markdown/tests/php/extra/Emphasis.text b/markdown/tests/php/extra/Emphasis.text
new file mode 100644
index 0000000..88e93d4
--- /dev/null
+++ b/markdown/tests/php/extra/Emphasis.text
@@ -0,0 +1,80 @@
+Combined emphasis:
+
+1. ***test test***
+2. ___test test___
+3. *test **test***
+4. **test *test***
+5. ***test* test**
+6. ***test** test*
+7. ***test* test**
+8. **test *test***
+9. *test **test***
+10. _test __test___
+11. __test _test___
+12. ___test_ test__
+13. ___test__ test_
+14. ___test_ test__
+15. __test _test___
+16. _test __test___
+
+
+Incorrect nesting:
+
+1. *test **test* test**
+2. _test __test_ test__
+3. **test *test** test*
+4. __test _test__ test_
+5. *test *test* test*
+6. _test _test_ test_
+7. **test **test** test**
+8. __test __test__ test__
+
+
+
+No emphasis:
+
+1. test* test *test
+2. test** test **test
+3. test_ test _test
+4. test__ test __test
+
+
+
+Middle-word emphasis (asterisks):
+
+1. *a*b
+2. a*b*
+3. a*b*c
+4. **a**b
+5. a**b**
+6. a**b**c
+
+
+Middle-word emphasis (underscore):
+
+1. _a_b
+2. a_b_
+3. a_b_c
+4. __a__b
+5. a__b__
+6. a__b__c
+
+my_precious_file.txt
+
+
+## Tricky Cases
+
+E**. **Test** TestTestTest
+
+E**. **Test** Test Test Test
+
+
+## Overlong emphasis
+
+Name: ____________
+Organization: ____
+Region/Country: __
+
+_____Cut here_____
+
+____Cut here____
diff --git a/markdown/tests/php/extra/Emphasis.xhtml b/markdown/tests/php/extra/Emphasis.xhtml
new file mode 100644
index 0000000..1fa8218
--- /dev/null
+++ b/markdown/tests/php/extra/Emphasis.xhtml
@@ -0,0 +1,83 @@
+Combined emphasis:
+
+
+test test
+test test
+test test
+test test
+test test
+test test
+test test
+test test
+test test
+test test
+test test
+test test
+test test
+test test
+test test
+test test
+
+
+Incorrect nesting:
+
+
+*test test* test
+_test test_ test
+test *test test*
+test _test test_
+test *test test*
+test _test test_
+test **test test**
+test __test test__
+
+
+No emphasis:
+
+
+test* test *test
+test** test **test
+test_ test _test
+test__ test __test
+
+
+Middle-word emphasis (asterisks):
+
+
+a b
+ab
+ab c
+a b
+ab
+ab c
+
+
+Middle-word emphasis (underscore):
+
+
+_a_b
+a_b_
+a_b_c
+__a__b
+a__b__
+a__b__c
+
+
+my_precious_file.txt
+
+Tricky Cases
+
+E**. Test TestTestTest
+
+E**. Test Test Test Test
+
+
+Overlong emphasis
+
+Name: ____________
+Organization: ____
+Region/Country: __
+
+_____Cut here_____
+
+____Cut here____
diff --git a/markdown/tests/php/extra/Fenced Code Blocks.text b/markdown/tests/php/extra/Fenced Code Blocks.text
new file mode 100644
index 0000000..f2400ff
--- /dev/null
+++ b/markdown/tests/php/extra/Fenced Code Blocks.text
@@ -0,0 +1,60 @@
+~~~
+Fenced
+~~~
+
+Code block starting and ending with empty lines:
+~~~
+
+
+Fenced
+
+
+~~~
+
+Indented code block containing fenced code block sample:
+
+ ~~~
+ Fenced
+ ~~~
+
+Fenced code block with indented code block sample:
+
+~~~
+Some text
+
+ Indented code block sample code
+~~~
+
+Fenced code block with long markers:
+
+~~~~~~~~~~~~~~~~~~
+Fenced
+~~~~~~~~~~~~~~~~~~
+
+Fenced code block with fenced code block markers of different length in it:
+
+~~~~
+In code block
+~~~
+Still in code block
+~~~~~
+Still in code block
+~~~~
+
+Fenced code block with Markdown header and horizontal rule:
+
+~~~
+#test
+---
+~~~
+
+Fenced code block with link definitions, footnote definition and
+abbreviation definitions:
+
+~~~
+[example]: http://example.com/
+
+[^1]: Footnote def
+
+*[HTML]: HyperText Markup Language
+~~~
\ No newline at end of file
diff --git a/markdown/tests/php/extra/Fenced Code Blocks.xhtml b/markdown/tests/php/extra/Fenced Code Blocks.xhtml
new file mode 100644
index 0000000..518908c
--- /dev/null
+++ b/markdown/tests/php/extra/Fenced Code Blocks.xhtml
@@ -0,0 +1,53 @@
+Fenced
+
+
+Code block starting and ending with empty lines:
+
+ Fenced
+
+
+
+
+Indented code block containing fenced code block sample:
+
+~~~
+Fenced
+~~~
+
+
+Fenced code block with indented code block sample:
+
+Some text
+
+ Indented code block sample code
+
+
+Fenced code block with long markers:
+
+Fenced
+
+
+Fenced code block with fenced code block markers of different length in it:
+
+In code block
+~~~
+Still in code block
+~~~~~
+Still in code block
+
+
+Fenced code block with Markdown header and horizontal rule:
+
+#test
+---
+
+
+Fenced code block with link definitions, footnote definition and
+abbreviation definitions:
+
+[example]: http://example.com/
+
+[^1]: Footnote def
+
+*[HTML]: HyperText Markup Language
+
diff --git a/markdown/tests/php/extra/Footnotes.text b/markdown/tests/php/extra/Footnotes.text
new file mode 100644
index 0000000..40192e9
--- /dev/null
+++ b/markdown/tests/php/extra/Footnotes.text
@@ -0,0 +1,61 @@
+This is the first paragraph.[^first]
+
+[^first]: This is the first note.
+
+* List item one.[^second]
+* List item two.[^third]
+
+[^third]: This is the third note, defined out of order.
+[^second]: This is the second note.
+[^fourth]: This is the fourth note.
+
+# Header[^fourth]
+
+Some paragraph with a footnote[^1], and another[^2].
+
+[^1]: Content for fifth footnote.
+[^2]: Content for sixth footnote spaning on
+ three lines, with some span-level markup like
+ _emphasis_, a [link][].
+
+[link]: http://www.michelf.com/
+
+Another paragraph with a named footnote[^fn-name].
+
+[^fn-name]:
+ Footnote beginning on the line next to the marker.
+
+This paragraph should not have a footnote marker since
+the footnote is undefined.[^3]
+
+This paragraph should not have a footnote marker since
+the footnote has already been used before.[^1]
+
+This paragraph links to a footnote with plenty of
+block-level content.[^block]
+
+[^block]:
+ Paragraph.
+
+ * List item
+
+ > Blockquote
+
+ Code block
+
+This paragraph host the footnote reference within a
+footnote test[^reference].
+
+[^reference]:
+ This footnote has a footnote of its own.[^nested]
+
+[^nested]:
+ This footnote should appear even though as it is refered
+ from another footnote. But [^reference] should be litteral
+ since the footnote with that name has already been used.
+
+ - - -
+
+Testing unusual footnote name[^1$^!"'].
+
+[^1$^!"']: Haha!
diff --git a/markdown/tests/php/extra/Footnotes.xhtml b/markdown/tests/php/extra/Footnotes.xhtml
new file mode 100644
index 0000000..e33639d
--- /dev/null
+++ b/markdown/tests/php/extra/Footnotes.xhtml
@@ -0,0 +1,96 @@
+This is the first paragraph.1
+
+
+List item one.2
+List item two.3
+
+
+Header4
+
+Some paragraph with a footnote5 , and another6 .
+
+Another paragraph with a named footnote7 .
+
+This paragraph should not have a footnote marker since
+the footnote is undefined.[^3]
+
+This paragraph should not have a footnote marker since
+the footnote has already been used before.[^1]
+
+This paragraph links to a footnote with plenty of
+block-level content.8
+
+This paragraph host the footnote reference within a
+footnote test9 .
+
+
+
+Testing unusual footnote name10 .
+
+
diff --git a/markdown/tests/php/extra/Inline HTML with Markdown content.text b/markdown/tests/php/extra/Inline HTML with Markdown content.text
new file mode 100644
index 0000000..1eb5450
--- /dev/null
+++ b/markdown/tests/php/extra/Inline HTML with Markdown content.text
@@ -0,0 +1,104 @@
+# Markdown inside code blocks
+
+
+foo
+
+
+
+foo
+
+
+
+foo
+
+
+
+test _emphasis_ (span)
+
+
+
+test _emphasis_ (span)
+
+
+
+test _emphasis_ (block)
+
+
+## More complicated
+
+
+
+* this is _not_ a list item
+
+* this is _not_ a list item
+
+* this _is_ a list item
+
+
+
+## With indent
+
+
+
+ This text is no code block: if it was, the
+ closing `
` would be too and the HTML block
+ would be invalid.
+
+ Markdown content in HTML blocks is assumed to be
+ indented the same as the block opening tag.
+
+ **This should be the third paragraph after the header.**
+
+
+
+## Code block with rogue `
`s in Markdown code span and block
+
+
+
+
+ This is a code block however:
+
+
+
+ Funny isn't it? Here is a code span: `
`.
+
+
+
+
+
+
+ * List item, not a code block
+
+Some text
+
+ This is a code block.
+
+
+
+## No code block in markdown span mode
+
+
+ This is not a code block since Markdown parse paragraph
+ content as span. Code spans like `
` are allowed though.
+
+
+_Hello_ _world_
+
+## Preserving attributes and tags on more than one line:
+
+
+Some _span_ content.
+
+
+
+## Header confusion bug
+
+
+
+Hello World!
+============
+
+Hello World!
+
+
diff --git a/markdown/tests/php/extra/Inline HTML with Markdown content.xhtml b/markdown/tests/php/extra/Inline HTML with Markdown content.xhtml
new file mode 100644
index 0000000..4751f78
--- /dev/null
+++ b/markdown/tests/php/extra/Inline HTML with Markdown content.xhtml
@@ -0,0 +1,125 @@
+Markdown inside code blocks
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+test emphasis (block)
+
+
+
+
+More complicated
+
+
+
+* this is not a list item
+
+* this is not a list item
+
+
+
+
+
+
+
+With indent
+
+
+
+
+
This text is no code block: if it was, the
+closing <div>
would be too and the HTML block
+would be invalid.
+
+
Markdown content in HTML blocks is assumed to be
+indented the same as the block opening tag.
+
+
This should be the third paragraph after the header.
+
+
+
+
+Code block with rogue </div>
s in Markdown code span and block
+
+
+
+
+
This is a code block however:
+
+
</div>
+
+
+
Funny isn't it? Here is a code span: </div>
.
+
+
+
+
+
+
+
+
+List item, not a code block
+
+
+
Some text
+
+
This is a code block.
+
+
+
+
+
+No code block in markdown span mode
+
+
+ This is not a code block since Markdown parse paragraph
+ content as span. Code spans like </p>
are allowed though.
+
+
+Hello world
+
+Preserving attributes and tags on more than one line:
+
+
+Some span content.
+
+
+Header confusion bug
+
+
+
+Hello World!
+============
+
+Hello World!
+
+
\ No newline at end of file
diff --git a/markdown/tests/php/extra/Tables.text b/markdown/tests/php/extra/Tables.text
new file mode 100644
index 0000000..71b93ca
--- /dev/null
+++ b/markdown/tests/php/extra/Tables.text
@@ -0,0 +1,104 @@
+# Simple tables
+
+Header 1 | Header 2
+--------- | ---------
+Cell 1 | Cell 2
+Cell 3 | Cell 4
+
+With leading pipes:
+
+| Header 1 | Header 2
+| --------- | ---------
+| Cell 1 | Cell 2
+| Cell 3 | Cell 4
+
+With tailing pipes:
+
+Header 1 | Header 2 |
+--------- | --------- |
+Cell 1 | Cell 2 |
+Cell 3 | Cell 4 |
+
+With leading and tailing pipes:
+
+| Header 1 | Header 2 |
+| --------- | --------- |
+| Cell 1 | Cell 2 |
+| Cell 3 | Cell 4 |
+
+* * *
+
+# One-column one-row table
+
+With leading pipes:
+
+| Header
+| -------
+| Cell
+
+With tailing pipes:
+
+Header |
+------- |
+Cell |
+
+With leading and tailing pipes:
+
+| Header |
+| ------- |
+| Cell |
+
+* * *
+
+Table alignement:
+
+| Default | Right | Center | Left |
+| --------- |:--------- |:---------:| ---------:|
+| Long Cell | Long Cell | Long Cell | Long Cell |
+| Cell | Cell | Cell | Cell |
+
+Table alignement (alternate spacing):
+
+| Default | Right | Center | Left |
+| --------- | :-------- | :-------: | --------: |
+| Long Cell | Long Cell | Long Cell | Long Cell |
+| Cell | Cell | Cell | Cell |
+
+* * *
+
+# Empty cells
+
+| Header 1 | Header 2 |
+| --------- | --------- |
+| A | B |
+| C | |
+
+Header 1 | Header 2
+--------- | ---------
+A | B
+ | D
+
+* * *
+
+# Missing tailing pipe
+
+Header 1 | Header 2
+--------- | --------- |
+Cell | Cell |
+Cell | Cell |
+
+Header 1 | Header 2 |
+--------- | ---------
+Cell | Cell |
+Cell | Cell |
+
+Header 1 | Header 2 |
+--------- | --------- |
+Cell | Cell
+Cell | Cell |
+
+Header 1 | Header 2 |
+--------- | --------- |
+Cell | Cell |
+Cell | Cell
+
diff --git a/markdown/tests/php/extra/Tables.xhtml b/markdown/tests/php/extra/Tables.xhtml
new file mode 100644
index 0000000..e36286c
--- /dev/null
+++ b/markdown/tests/php/extra/Tables.xhtml
@@ -0,0 +1,310 @@
+Simple tables
+
+
+
+
+ Header 1
+ Header 2
+
+
+
+
+ Cell 1
+ Cell 2
+
+
+ Cell 3
+ Cell 4
+
+
+
+
+With leading pipes:
+
+
+
+
+ Header 1
+ Header 2
+
+
+
+
+ Cell 1
+ Cell 2
+
+
+ Cell 3
+ Cell 4
+
+
+
+
+With tailing pipes:
+
+
+
+
+ Header 1
+ Header 2
+
+
+
+
+ Cell 1
+ Cell 2
+
+
+ Cell 3
+ Cell 4
+
+
+
+
+With leading and tailing pipes:
+
+
+
+
+ Header 1
+ Header 2
+
+
+
+
+ Cell 1
+ Cell 2
+
+
+ Cell 3
+ Cell 4
+
+
+
+
+
+
+One-column one-row table
+
+With leading pipes:
+
+
+
+
+ Header
+
+
+
+
+ Cell
+
+
+
+
+With tailing pipes:
+
+
+
+
+ Header
+
+
+
+
+ Cell
+
+
+
+
+With leading and tailing pipes:
+
+
+
+
+ Header
+
+
+
+
+ Cell
+
+
+
+
+
+
+Table alignement:
+
+
+
+
+ Default
+ Right
+ Center
+ Left
+
+
+
+
+ Long Cell
+ Long Cell
+ Long Cell
+ Long Cell
+
+
+ Cell
+ Cell
+ Cell
+ Cell
+
+
+
+
+Table alignement (alternate spacing):
+
+
+
+
+ Default
+ Right
+ Center
+ Left
+
+
+
+
+ Long Cell
+ Long Cell
+ Long Cell
+ Long Cell
+
+
+ Cell
+ Cell
+ Cell
+ Cell
+
+
+
+
+
+
+Empty cells
+
+
+
+
+ Header 1
+ Header 2
+
+
+
+
+ A
+ B
+
+
+ C
+
+
+
+
+
+
+
+
+ Header 1
+ Header 2
+
+
+
+
+ A
+ B
+
+
+
+ D
+
+
+
+
+
+
+Missing tailing pipe
+
+
+
+
+ Header 1
+ Header 2
+
+
+
+
+ Cell
+ Cell
+
+
+ Cell
+ Cell
+
+
+
+
+
+
+
+ Header 1
+ Header 2
+
+
+
+
+ Cell
+ Cell
+
+
+ Cell
+ Cell
+
+
+
+
+
+
+
+ Header 1
+ Header 2
+
+
+
+
+ Cell
+ Cell
+
+
+ Cell
+ Cell
+
+
+
+
+
+
+
+ Header 1
+ Header 2
+
+
+
+
+ Cell
+ Cell
+
+
+ Cell
+ Cell
+
+
+
\ No newline at end of file
diff --git a/markdown/tests/php/extra/test.cfg b/markdown/tests/php/extra/test.cfg
new file mode 100644
index 0000000..9c10984
--- /dev/null
+++ b/markdown/tests/php/extra/test.cfg
@@ -0,0 +1,6 @@
+[DEFAULT]
+extensions=extra
+normalize=1
+input_ext=.text
+output_ext=.xhtml
+skip=1
diff --git a/markdown/tests/php/test.cfg b/markdown/tests/php/test.cfg
new file mode 100644
index 0000000..645d72b
--- /dev/null
+++ b/markdown/tests/php/test.cfg
@@ -0,0 +1,5 @@
+[DEFAULT]
+normalize=1
+input_ext=.text
+output_ext=.xhtml
+skip=1
--
cgit v1.2.3
From 8498081907a1172f7e6bec016b8130ac4e80c2d6 Mon Sep 17 00:00:00 2001
From: Waylan Limberg
Date: Tue, 16 Jun 2009 10:33:10 -0400
Subject: Fixed UnicodeDecodeErrors from some of the php & pl tests when
normalizing whitespace with tidy.
---
markdown/tests/__init__.py | 4 ++--
markdown/tests/pl/Tests_2004/test.cfg | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/markdown/tests/__init__.py b/markdown/tests/__init__.py
index ff4916a..d07ae7d 100644
--- a/markdown/tests/__init__.py
+++ b/markdown/tests/__init__.py
@@ -44,7 +44,7 @@ def get_args(file, config):
def normalize(text):
""" Normalize whitespace for a string of html using tidy. """
- return unicode(tidy.parseString(text.encode('utf-8'),
+ return str(tidy.parseString(text.encode('utf-8'),
drop_empty_paras=0,
fix_backslash=0,
fix_bad_comments=0,
@@ -56,7 +56,7 @@ def normalize(text):
quote_ampersand=0,
show_body_only=1,
char_encoding='utf8',
- newline='LF'))
+ newline='LF')).decode('string-escape')
class CheckSyntax(object):
def __init__(self, description=None):
diff --git a/markdown/tests/pl/Tests_2004/test.cfg b/markdown/tests/pl/Tests_2004/test.cfg
index 12f3b4c..d3850f4 100644
--- a/markdown/tests/pl/Tests_2004/test.cfg
+++ b/markdown/tests/pl/Tests_2004/test.cfg
@@ -5,5 +5,6 @@ normalize=1
#skip=1
[Yuri-Footnotes]
+extensions=footnotes
skip=1
--
cgit v1.2.3
From 7e0b959ef2a64f2339be28f258b895d7a79003a8 Mon Sep 17 00:00:00 2001
From: Waylan Limberg
Date: Fri, 12 Feb 2010 15:45:28 -0500
Subject: Moved remaining tests from merge
---
markdown/tests/extensions/extra/raw-html.html | 14 ++++++++++++++
markdown/tests/extensions/extra/raw-html.txt | 12 ++++++++++++
markdown/tests/extensions/test.cfg | 6 ++++++
markdown/tests/extensions/toc_nested.html | 16 ++++++++++++++++
markdown/tests/extensions/toc_nested.txt | 9 +++++++++
markdown/tests/extensions/toc_nested2.html | 14 ++++++++++++++
markdown/tests/extensions/toc_nested2.txt | 10 ++++++++++
markdown/tests/misc/raw_whitespace.html | 8 ++++++++
markdown/tests/misc/raw_whitespace.txt | 10 ++++++++++
markdown/tests/misc/smart_em.html | 5 +++++
markdown/tests/misc/smart_em.txt | 9 +++++++++
tests/extensions-x-extra/raw-html.html | 14 --------------
tests/extensions-x-extra/raw-html.txt | 12 ------------
tests/extensions-x-toc/nested.html | 16 ----------------
tests/extensions-x-toc/nested.txt | 9 ---------
tests/extensions-x-toc/nested2.html | 14 --------------
tests/extensions-x-toc/nested2.txt | 10 ----------
tests/misc/raw_whitespace.html | 8 --------
tests/misc/raw_whitespace.txt | 10 ----------
tests/misc/smart_em.html | 5 -----
tests/misc/smart_em.txt | 9 ---------
21 files changed, 113 insertions(+), 107 deletions(-)
create mode 100644 markdown/tests/extensions/extra/raw-html.html
create mode 100644 markdown/tests/extensions/extra/raw-html.txt
create mode 100644 markdown/tests/extensions/toc_nested.html
create mode 100644 markdown/tests/extensions/toc_nested.txt
create mode 100644 markdown/tests/extensions/toc_nested2.html
create mode 100644 markdown/tests/extensions/toc_nested2.txt
create mode 100644 markdown/tests/misc/raw_whitespace.html
create mode 100644 markdown/tests/misc/raw_whitespace.txt
create mode 100644 markdown/tests/misc/smart_em.html
create mode 100644 markdown/tests/misc/smart_em.txt
delete mode 100644 tests/extensions-x-extra/raw-html.html
delete mode 100644 tests/extensions-x-extra/raw-html.txt
delete mode 100644 tests/extensions-x-toc/nested.html
delete mode 100644 tests/extensions-x-toc/nested.txt
delete mode 100644 tests/extensions-x-toc/nested2.html
delete mode 100644 tests/extensions-x-toc/nested2.txt
delete mode 100644 tests/misc/raw_whitespace.html
delete mode 100644 tests/misc/raw_whitespace.txt
delete mode 100644 tests/misc/smart_em.html
delete mode 100644 tests/misc/smart_em.txt
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 @@
+
+
+
+
+
\ 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 @@
+_foo_
+
+
+_bar_
+
+
+
+
+_blah_
+
+
+
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 @@
+
+
+
+
+
\ 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 @@
+
+
+
+
+
\ 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 @@
+Preserve whitespace in raw html
+
+class Foo():
+ bar = 'bar'
+
+ def baz(self):
+ print self.bar
+
\ 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
+
+
+class Foo():
+ bar = 'bar'
+
+ def baz(self):
+ print self.bar
+
+
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 @@
+emphasis
+this_is_not_emphasis
+[punctuation with emphasis ]
+[punctuation_with_emphasis ]
+[punctuation_without_emphasis]
\ 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]
diff --git a/tests/extensions-x-extra/raw-html.html b/tests/extensions-x-extra/raw-html.html
deleted file mode 100644
index b2a7c4d..0000000
--- a/tests/extensions-x-extra/raw-html.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/tests/extensions-x-extra/raw-html.txt b/tests/extensions-x-extra/raw-html.txt
deleted file mode 100644
index 284fe0c..0000000
--- a/tests/extensions-x-extra/raw-html.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-_foo_
-
-
-_bar_
-
-
-
-
-_blah_
-
-
-
diff --git a/tests/extensions-x-toc/nested.html b/tests/extensions-x-toc/nested.html
deleted file mode 100644
index a8a1583..0000000
--- a/tests/extensions-x-toc/nested.html
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/tests/extensions-x-toc/nested.txt b/tests/extensions-x-toc/nested.txt
deleted file mode 100644
index 9b515f9..0000000
--- a/tests/extensions-x-toc/nested.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-# Header A
-
-## Header 1
-
-### Header i
-
-# Header B
-
-[TOC]
diff --git a/tests/extensions-x-toc/nested2.html b/tests/extensions-x-toc/nested2.html
deleted file mode 100644
index bf87716..0000000
--- a/tests/extensions-x-toc/nested2.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/tests/extensions-x-toc/nested2.txt b/tests/extensions-x-toc/nested2.txt
deleted file mode 100644
index 9db4d8c..0000000
--- a/tests/extensions-x-toc/nested2.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-[TOC]
-
-### Start with header other than one.
-
-### Header 3
-
-#### Header 4
-
-### Header 3
-
diff --git a/tests/misc/raw_whitespace.html b/tests/misc/raw_whitespace.html
deleted file mode 100644
index 7a6f131..0000000
--- a/tests/misc/raw_whitespace.html
+++ /dev/null
@@ -1,8 +0,0 @@
-Preserve whitespace in raw html
-
-class Foo():
- bar = 'bar'
-
- def baz(self):
- print self.bar
-
\ No newline at end of file
diff --git a/tests/misc/raw_whitespace.txt b/tests/misc/raw_whitespace.txt
deleted file mode 100644
index bbc7cec..0000000
--- a/tests/misc/raw_whitespace.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-Preserve whitespace in raw html
-
-
-class Foo():
- bar = 'bar'
-
- def baz(self):
- print self.bar
-
-
diff --git a/tests/misc/smart_em.html b/tests/misc/smart_em.html
deleted file mode 100644
index 5683b25..0000000
--- a/tests/misc/smart_em.html
+++ /dev/null
@@ -1,5 +0,0 @@
-emphasis
-this_is_not_emphasis
-[punctuation with emphasis ]
-[punctuation_with_emphasis ]
-[punctuation_without_emphasis]
\ No newline at end of file
diff --git a/tests/misc/smart_em.txt b/tests/misc/smart_em.txt
deleted file mode 100644
index 3c56842..0000000
--- a/tests/misc/smart_em.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-_emphasis_
-
-this_is_not_emphasis
-
-[_punctuation with emphasis_]
-
-[_punctuation_with_emphasis_]
-
-[punctuation_without_emphasis]
--
cgit v1.2.3
From 28caf01c8082dbed3a5ca87b070ffe5657514f01 Mon Sep 17 00:00:00 2001
From: Waylan Limberg
Date: Fri, 12 Feb 2010 16:24:15 -0500
Subject: 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.
---
MANIFEST.in | 3 +-
markdown/tests/__init__.py | 117 ---
markdown/tests/basic/amps-and-angle-encoding.html | 9 -
markdown/tests/basic/amps-and-angle-encoding.txt | 21 -
markdown/tests/basic/angle-links-and-img.html | 4 -
markdown/tests/basic/angle-links-and-img.txt | 4 -
markdown/tests/basic/auto-links.html | 15 -
markdown/tests/basic/auto-links.txt | 17 -
markdown/tests/basic/backlash-escapes.html | 67 --
markdown/tests/basic/backlash-escapes.txt | 104 ---
markdown/tests/basic/benchmark.dat | 20 -
.../tests/basic/blockquotes-with-code-blocks.html | 12 -
.../tests/basic/blockquotes-with-code-blocks.txt | 11 -
markdown/tests/basic/codeblock-in-list.html | 14 -
markdown/tests/basic/codeblock-in-list.txt | 10 -
markdown/tests/basic/hard-wrapped.html | 7 -
markdown/tests/basic/hard-wrapped.txt | 8 -
markdown/tests/basic/horizontal-rules.html | 39 -
markdown/tests/basic/horizontal-rules.txt | 67 --
markdown/tests/basic/inline-html-advanced.html | 12 -
markdown/tests/basic/inline-html-advanced.txt | 14 -
markdown/tests/basic/inline-html-comments.html | 11 -
markdown/tests/basic/inline-html-comments.txt | 13 -
markdown/tests/basic/inline-html-simple.html | 58 --
markdown/tests/basic/inline-html-simple.txt | 69 --
markdown/tests/basic/links-inline.html | 5 -
markdown/tests/basic/links-inline.txt | 9 -
markdown/tests/basic/links-reference.html | 10 -
markdown/tests/basic/links-reference.txt | 31 -
markdown/tests/basic/literal-quotes.html | 2 -
markdown/tests/basic/literal-quotes.txt | 7 -
.../tests/basic/markdown-documentation-basics.html | 243 ------
.../tests/basic/markdown-documentation-basics.txt | 306 -------
markdown/tests/basic/markdown-syntax.html | 728 ----------------
markdown/tests/basic/markdown-syntax.txt | 888 -------------------
markdown/tests/basic/nested-blockquotes.html | 7 -
markdown/tests/basic/nested-blockquotes.txt | 5 -
.../tests/basic/ordered-and-unordered-list.html | 146 ----
.../tests/basic/ordered-and-unordered-list.txt | 122 ---
markdown/tests/basic/strong-and-em-together.html | 4 -
markdown/tests/basic/strong-and-em-together.txt | 7 -
markdown/tests/basic/tabs.html | 23 -
markdown/tests/basic/tabs.txt | 21 -
markdown/tests/basic/tidyness.html | 8 -
markdown/tests/basic/tidyness.txt | 5 -
markdown/tests/extensions/codehilite.html | 16 -
markdown/tests/extensions/codehilite.txt | 12 -
markdown/tests/extensions/extra/abbr.html | 4 -
markdown/tests/extensions/extra/abbr.txt | 13 -
markdown/tests/extensions/extra/footnote.html | 29 -
markdown/tests/extensions/extra/footnote.txt | 14 -
.../tests/extensions/extra/loose_def_list.html | 21 -
markdown/tests/extensions/extra/loose_def_list.txt | 20 -
.../tests/extensions/extra/markdown-syntax.html | 728 ----------------
.../tests/extensions/extra/markdown-syntax.txt | 888 -------------------
markdown/tests/extensions/extra/named_markers.html | 24 -
markdown/tests/extensions/extra/named_markers.txt | 9 -
markdown/tests/extensions/extra/raw-html.html | 14 -
markdown/tests/extensions/extra/raw-html.txt | 12 -
.../tests/extensions/extra/simple_def-lists.html | 37 -
.../tests/extensions/extra/simple_def-lists.txt | 29 -
markdown/tests/extensions/extra/tables.html | 119 ---
markdown/tests/extensions/extra/tables.txt | 34 -
markdown/tests/extensions/extra/test.cfg | 17 -
markdown/tests/extensions/test.cfg | 17 -
markdown/tests/extensions/toc.html | 699 ---------------
markdown/tests/extensions/toc.txt | 851 -------------------
markdown/tests/extensions/toc_invalid.html | 6 -
markdown/tests/extensions/toc_invalid.txt | 9 -
markdown/tests/extensions/toc_nested.html | 16 -
markdown/tests/extensions/toc_nested.txt | 9 -
markdown/tests/extensions/toc_nested2.html | 14 -
markdown/tests/extensions/toc_nested2.txt | 10 -
markdown/tests/extensions/wikilinks.html | 9 -
markdown/tests/extensions/wikilinks.txt | 14 -
markdown/tests/html4/html4.html | 2 -
markdown/tests/html4/html4.txt | 2 -
markdown/tests/html4/test.cfg | 2 -
markdown/tests/misc/CRLF_line_ends.html | 4 -
markdown/tests/misc/CRLF_line_ends.txt | 5 -
markdown/tests/misc/adjacent-headers.html | 2 -
markdown/tests/misc/adjacent-headers.txt | 2 -
markdown/tests/misc/amp-in-url.html | 1 -
markdown/tests/misc/amp-in-url.txt | 1 -
markdown/tests/misc/ampersand.html | 2 -
markdown/tests/misc/ampersand.txt | 5 -
markdown/tests/misc/arabic.html | 27 -
markdown/tests/misc/arabic.txt | 37 -
markdown/tests/misc/attributes2.html | 6 -
markdown/tests/misc/attributes2.txt | 10 -
markdown/tests/misc/autolinks_with_asterisks.html | 1 -
markdown/tests/misc/autolinks_with_asterisks.txt | 2 -
.../misc/autolinks_with_asterisks_russian.html | 1 -
.../misc/autolinks_with_asterisks_russian.txt | 3 -
markdown/tests/misc/backtick-escape.html | 3 -
markdown/tests/misc/backtick-escape.txt | 3 -
markdown/tests/misc/benchmark.dat | 56 --
markdown/tests/misc/bidi.html | 39 -
markdown/tests/misc/bidi.txt | 68 --
markdown/tests/misc/blank-block-quote.html | 3 -
markdown/tests/misc/blank-block-quote.txt | 6 -
.../tests/misc/blockquote-below-paragraph.html | 15 -
markdown/tests/misc/blockquote-below-paragraph.txt | 11 -
markdown/tests/misc/blockquote-hr.html | 16 -
markdown/tests/misc/blockquote-hr.txt | 21 -
markdown/tests/misc/blockquote.html | 24 -
markdown/tests/misc/blockquote.txt | 21 -
markdown/tests/misc/bold_links.html | 1 -
markdown/tests/misc/bold_links.txt | 1 -
markdown/tests/misc/br.html | 11 -
markdown/tests/misc/br.txt | 16 -
markdown/tests/misc/bracket_re.html | 60 --
markdown/tests/misc/bracket_re.txt | 61 --
markdown/tests/misc/code-first-line.html | 2 -
markdown/tests/misc/code-first-line.txt | 1 -
markdown/tests/misc/comments.html | 5 -
markdown/tests/misc/comments.txt | 7 -
markdown/tests/misc/div.html | 5 -
markdown/tests/misc/div.txt | 5 -
markdown/tests/misc/em-around-links.html | 13 -
markdown/tests/misc/em-around-links.txt | 14 -
markdown/tests/misc/em_strong.html | 10 -
markdown/tests/misc/em_strong.txt | 20 -
markdown/tests/misc/email.html | 2 -
markdown/tests/misc/email.txt | 3 -
markdown/tests/misc/funky-list.html | 11 -
markdown/tests/misc/funky-list.txt | 9 -
markdown/tests/misc/h1.html | 3 -
markdown/tests/misc/h1.txt | 7 -
markdown/tests/misc/hash.html | 11 -
markdown/tests/misc/hash.txt | 13 -
markdown/tests/misc/headers.html | 10 -
markdown/tests/misc/headers.txt | 15 -
markdown/tests/misc/hline.html | 2 -
markdown/tests/misc/hline.txt | 5 -
markdown/tests/misc/html-comments.html | 2 -
markdown/tests/misc/html-comments.txt | 2 -
markdown/tests/misc/html.html | 13 -
markdown/tests/misc/html.txt | 17 -
markdown/tests/misc/image-2.html | 2 -
markdown/tests/misc/image-2.txt | 3 -
markdown/tests/misc/image.html | 1 -
markdown/tests/misc/image.txt | 2 -
markdown/tests/misc/image_in_links.html | 1 -
markdown/tests/misc/image_in_links.txt | 3 -
markdown/tests/misc/inside_html.html | 1 -
markdown/tests/misc/inside_html.txt | 1 -
markdown/tests/misc/japanese.html | 11 -
markdown/tests/misc/japanese.txt | 15 -
markdown/tests/misc/lazy-block-quote.html | 6 -
markdown/tests/misc/lazy-block-quote.txt | 5 -
markdown/tests/misc/link-with-parenthesis.html | 1 -
markdown/tests/misc/link-with-parenthesis.txt | 1 -
markdown/tests/misc/lists.html | 36 -
markdown/tests/misc/lists.txt | 31 -
markdown/tests/misc/lists2.html | 5 -
markdown/tests/misc/lists2.txt | 3 -
markdown/tests/misc/lists3.html | 5 -
markdown/tests/misc/lists3.txt | 3 -
markdown/tests/misc/lists4.html | 8 -
markdown/tests/misc/lists4.txt | 5 -
markdown/tests/misc/lists5.html | 14 -
markdown/tests/misc/lists5.txt | 12 -
markdown/tests/misc/lists6.html | 18 -
markdown/tests/misc/lists6.txt | 14 -
markdown/tests/misc/markup-inside-p.html | 21 -
markdown/tests/misc/markup-inside-p.txt | 21 -
markdown/tests/misc/mismatched-tags.html | 11 -
markdown/tests/misc/mismatched-tags.txt | 9 -
markdown/tests/misc/missing-link-def.html | 1 -
markdown/tests/misc/missing-link-def.txt | 4 -
markdown/tests/misc/more_comments.html | 7 -
markdown/tests/misc/more_comments.txt | 9 -
markdown/tests/misc/multi-line-tags.html | 5 -
markdown/tests/misc/multi-line-tags.txt | 6 -
.../tests/misc/multi-paragraph-block-quote.html | 6 -
.../tests/misc/multi-paragraph-block-quote.txt | 8 -
markdown/tests/misc/multi-test.html | 20 -
markdown/tests/misc/multi-test.txt | 32 -
markdown/tests/misc/multiline-comments.html | 17 -
markdown/tests/misc/multiline-comments.txt | 18 -
markdown/tests/misc/nested-lists.html | 39 -
markdown/tests/misc/nested-lists.txt | 24 -
markdown/tests/misc/nested-patterns.html | 7 -
markdown/tests/misc/nested-patterns.txt | 7 -
markdown/tests/misc/normalize.html | 1 -
markdown/tests/misc/normalize.txt | 2 -
markdown/tests/misc/numeric-entity.html | 2 -
markdown/tests/misc/numeric-entity.txt | 4 -
markdown/tests/misc/para-with-hr.html | 3 -
markdown/tests/misc/para-with-hr.txt | 4 -
markdown/tests/misc/php.html | 11 -
markdown/tests/misc/php.txt | 13 -
markdown/tests/misc/pre.html | 13 -
markdown/tests/misc/pre.txt | 14 -
markdown/tests/misc/raw_whitespace.html | 8 -
markdown/tests/misc/raw_whitespace.txt | 10 -
markdown/tests/misc/russian.html | 6 -
markdown/tests/misc/russian.txt | 15 -
markdown/tests/misc/smart_em.html | 5 -
markdown/tests/misc/smart_em.txt | 9 -
markdown/tests/misc/some-test.html | 66 --
markdown/tests/misc/some-test.txt | 57 --
markdown/tests/misc/span.html | 6 -
markdown/tests/misc/span.txt | 10 -
markdown/tests/misc/strong-with-underscores.html | 1 -
markdown/tests/misc/strong-with-underscores.txt | 1 -
markdown/tests/misc/stronintags.html | 4 -
markdown/tests/misc/stronintags.txt | 8 -
markdown/tests/misc/tabs-in-lists.html | 42 -
markdown/tests/misc/tabs-in-lists.txt | 32 -
markdown/tests/misc/two-spaces.html | 21 -
markdown/tests/misc/two-spaces.txt | 17 -
markdown/tests/misc/uche.html | 3 -
markdown/tests/misc/uche.txt | 7 -
markdown/tests/misc/underscores.html | 6 -
markdown/tests/misc/underscores.txt | 11 -
markdown/tests/misc/url_spaces.html | 2 -
markdown/tests/misc/url_spaces.txt | 4 -
markdown/tests/php/Auto Links.text | 3 -
markdown/tests/php/Auto Links.xhtml | 3 -
markdown/tests/php/Backslash escapes.text | 1 -
markdown/tests/php/Backslash escapes.xhtml | 1 -
markdown/tests/php/Code Spans.text | 6 -
markdown/tests/php/Code Spans.xhtml | 6 -
markdown/tests/php/Code block in a list item.text | 15 -
markdown/tests/php/Code block in a list item.xhtml | 18 -
markdown/tests/php/Code block on second line.text | 2 -
markdown/tests/php/Code block on second line.xhtml | 2 -
markdown/tests/php/Email auto links.text | 3 -
markdown/tests/php/Email auto links.xhtml | 3 -
markdown/tests/php/Emphasis.text | 80 --
markdown/tests/php/Emphasis.xhtml | 83 --
markdown/tests/php/Empty List Item.text | 35 -
markdown/tests/php/Empty List Item.xhtml | 47 -
markdown/tests/php/Headers.text | 9 -
markdown/tests/php/Headers.xhtml | 39 -
markdown/tests/php/Horizontal Rules.text | 29 -
markdown/tests/php/Horizontal Rules.xhtml | 30 -
markdown/tests/php/Inline HTML (Simple).text | 15 -
markdown/tests/php/Inline HTML (Simple).xhtml | 15 -
markdown/tests/php/Inline HTML (Span).text | 4 -
markdown/tests/php/Inline HTML (Span).xhtml | 4 -
markdown/tests/php/Inline HTML comments.text | 9 -
markdown/tests/php/Inline HTML comments.xhtml | 9 -
markdown/tests/php/Ins & del.text | 17 -
markdown/tests/php/Ins & del.xhtml | 17 -
markdown/tests/php/License | 339 --------
markdown/tests/php/Links, inline style.text | 1 -
markdown/tests/php/Links, inline style.xhtml | 1 -
markdown/tests/php/MD5 Hashes.text | 11 -
markdown/tests/php/MD5 Hashes.xhtml | 11 -
markdown/tests/php/Mixed OLs and ULs.text | 13 -
markdown/tests/php/Mixed OLs and ULs.xhtml | 21 -
markdown/tests/php/Nesting.text | 11 -
markdown/tests/php/Nesting.xhtml | 11 -
markdown/tests/php/PHP-Specific Bugs.text | 22 -
markdown/tests/php/PHP-Specific Bugs.xhtml | 17 -
markdown/tests/php/Parens in URL.text | 14 -
markdown/tests/php/Parens in URL.xhtml | 11 -
markdown/tests/php/Quotes in attributes.text | 5 -
markdown/tests/php/Quotes in attributes.xhtml | 5 -
markdown/tests/php/Tight blocks.text | 1 -
markdown/tests/php/Tight blocks.xhtml | 21 -
markdown/tests/php/extra/Abbr.text | 31 -
markdown/tests/php/extra/Abbr.xhtml | 15 -
markdown/tests/php/extra/Definition Lists.text | 115 ---
markdown/tests/php/extra/Definition Lists.xhtml | 155 ----
markdown/tests/php/extra/Emphasis.text | 80 --
markdown/tests/php/extra/Emphasis.xhtml | 83 --
markdown/tests/php/extra/Fenced Code Blocks.text | 60 --
markdown/tests/php/extra/Fenced Code Blocks.xhtml | 53 --
markdown/tests/php/extra/Footnotes.text | 61 --
markdown/tests/php/extra/Footnotes.xhtml | 96 ---
.../extra/Inline HTML with Markdown content.text | 104 ---
.../extra/Inline HTML with Markdown content.xhtml | 125 ---
markdown/tests/php/extra/Tables.text | 104 ---
markdown/tests/php/extra/Tables.xhtml | 310 -------
markdown/tests/php/extra/test.cfg | 6 -
markdown/tests/php/test.cfg | 5 -
.../pl/Tests_2004/Amps and angle encoding.html | 17 -
.../pl/Tests_2004/Amps and angle encoding.text | 21 -
markdown/tests/pl/Tests_2004/Auto links.html | 18 -
markdown/tests/pl/Tests_2004/Auto links.text | 13 -
.../tests/pl/Tests_2004/Backslash escapes.html | 102 ---
.../tests/pl/Tests_2004/Backslash escapes.text | 104 ---
.../Tests_2004/Blockquotes with code blocks.html | 15 -
.../Tests_2004/Blockquotes with code blocks.text | 11 -
...rd-wrapped paragraphs with list-like lines.html | 8 -
...rd-wrapped paragraphs with list-like lines.text | 8 -
markdown/tests/pl/Tests_2004/Horizontal rules.html | 71 --
markdown/tests/pl/Tests_2004/Horizontal rules.text | 67 --
.../pl/Tests_2004/Inline HTML (Advanced).html | 14 -
.../pl/Tests_2004/Inline HTML (Advanced).text | 14 -
.../tests/pl/Tests_2004/Inline HTML (Simple).html | 72 --
.../tests/pl/Tests_2004/Inline HTML (Simple).text | 69 --
.../tests/pl/Tests_2004/Inline HTML comments.html | 13 -
.../tests/pl/Tests_2004/Inline HTML comments.text | 13 -
.../tests/pl/Tests_2004/Links, inline style.html | 9 -
.../tests/pl/Tests_2004/Links, inline style.text | 9 -
.../pl/Tests_2004/Links, reference style.html | 18 -
.../pl/Tests_2004/Links, reference style.text | 31 -
.../pl/Tests_2004/Literal quotes in titles.html | 3 -
.../pl/Tests_2004/Literal quotes in titles.text | 7 -
.../Markdown Documentation - Basics.html | 314 -------
.../Markdown Documentation - Basics.text | 306 -------
.../Markdown Documentation - Syntax.html | 942 ---------------------
.../Markdown Documentation - Syntax.text | 888 -------------------
.../tests/pl/Tests_2004/Nested blockquotes.html | 9 -
.../tests/pl/Tests_2004/Nested blockquotes.text | 5 -
.../pl/Tests_2004/Ordered and unordered lists.html | 137 ---
.../pl/Tests_2004/Ordered and unordered lists.text | 122 ---
.../pl/Tests_2004/Strong and em together.html | 7 -
.../pl/Tests_2004/Strong and em together.text | 7 -
markdown/tests/pl/Tests_2004/Tabs.html | 25 -
markdown/tests/pl/Tests_2004/Tabs.text | 21 -
markdown/tests/pl/Tests_2004/Tidyness.html | 8 -
markdown/tests/pl/Tests_2004/Tidyness.text | 5 -
markdown/tests/pl/Tests_2004/Yuri-Attributes.html | 28 -
markdown/tests/pl/Tests_2004/Yuri-Attributes.text | 19 -
markdown/tests/pl/Tests_2004/Yuri-Email.html | 18 -
markdown/tests/pl/Tests_2004/Yuri-Email.text | 7 -
markdown/tests/pl/Tests_2004/Yuri-Footnotes.html | 46 -
markdown/tests/pl/Tests_2004/Yuri-Footnotes.text | 32 -
.../tests/pl/Tests_2004/Yuri-Links-in-Headers.html | 15 -
.../tests/pl/Tests_2004/Yuri-Links-in-Headers.text | 18 -
markdown/tests/pl/Tests_2004/test.cfg | 10 -
.../pl/Tests_2007/Amps and angle encoding.html | 17 -
.../pl/Tests_2007/Amps and angle encoding.text | 21 -
markdown/tests/pl/Tests_2007/Auto links.html | 18 -
markdown/tests/pl/Tests_2007/Auto links.text | 13 -
.../tests/pl/Tests_2007/Backslash escapes.html | 118 ---
.../tests/pl/Tests_2007/Backslash escapes.text | 120 ---
.../Tests_2007/Blockquotes with code blocks.html | 15 -
.../Tests_2007/Blockquotes with code blocks.text | 11 -
markdown/tests/pl/Tests_2007/Code Blocks.html | 18 -
markdown/tests/pl/Tests_2007/Code Blocks.text | 14 -
markdown/tests/pl/Tests_2007/Code Spans.html | 5 -
markdown/tests/pl/Tests_2007/Code Spans.text | 5 -
...rd-wrapped paragraphs with list-like lines.html | 8 -
...rd-wrapped paragraphs with list-like lines.text | 8 -
markdown/tests/pl/Tests_2007/Horizontal rules.html | 71 --
markdown/tests/pl/Tests_2007/Horizontal rules.text | 67 --
markdown/tests/pl/Tests_2007/Images.html | 21 -
markdown/tests/pl/Tests_2007/Images.text | 26 -
.../pl/Tests_2007/Inline HTML (Advanced).html | 30 -
.../pl/Tests_2007/Inline HTML (Advanced).text | 30 -
.../tests/pl/Tests_2007/Inline HTML (Simple).html | 72 --
.../tests/pl/Tests_2007/Inline HTML (Simple).text | 69 --
.../tests/pl/Tests_2007/Inline HTML comments.html | 13 -
.../tests/pl/Tests_2007/Inline HTML comments.text | 13 -
.../tests/pl/Tests_2007/Links, inline style.html | 23 -
.../tests/pl/Tests_2007/Links, inline style.text | 24 -
.../pl/Tests_2007/Links, reference style.html | 52 --
.../pl/Tests_2007/Links, reference style.text | 71 --
.../pl/Tests_2007/Links, shortcut references.html | 9 -
.../pl/Tests_2007/Links, shortcut references.text | 20 -
.../pl/Tests_2007/Literal quotes in titles.html | 3 -
.../pl/Tests_2007/Literal quotes in titles.text | 7 -
.../Markdown Documentation - Basics.html | 314 -------
.../Markdown Documentation - Basics.text | 306 -------
.../Markdown Documentation - Syntax.html | 942 ---------------------
.../Markdown Documentation - Syntax.text | 888 -------------------
.../tests/pl/Tests_2007/Nested blockquotes.html | 9 -
.../tests/pl/Tests_2007/Nested blockquotes.text | 5 -
.../pl/Tests_2007/Ordered and unordered lists.html | 148 ----
.../pl/Tests_2007/Ordered and unordered lists.text | 131 ---
.../pl/Tests_2007/Strong and em together.html | 7 -
.../pl/Tests_2007/Strong and em together.text | 7 -
markdown/tests/pl/Tests_2007/Tabs.html | 25 -
markdown/tests/pl/Tests_2007/Tabs.text | 21 -
markdown/tests/pl/Tests_2007/Tidyness.html | 8 -
markdown/tests/pl/Tests_2007/Tidyness.text | 5 -
markdown/tests/pl/Tests_2007/test.cfg | 5 -
markdown/tests/plugins.py | 115 ---
markdown/tests/safe_mode/inline-html-advanced.html | 11 -
markdown/tests/safe_mode/inline-html-advanced.txt | 14 -
markdown/tests/safe_mode/inline-html-comments.html | 8 -
markdown/tests/safe_mode/inline-html-comments.txt | 13 -
markdown/tests/safe_mode/inline-html-simple.html | 45 -
markdown/tests/safe_mode/inline-html-simple.txt | 69 --
markdown/tests/safe_mode/remove.html | 34 -
markdown/tests/safe_mode/remove.txt | 69 --
markdown/tests/safe_mode/replace.html | 34 -
markdown/tests/safe_mode/replace.txt | 69 --
markdown/tests/safe_mode/script_tags.html | 28 -
markdown/tests/safe_mode/script_tags.txt | 33 -
markdown/tests/safe_mode/test.cfg | 8 -
markdown/tests/safe_mode/unsafe_urls.html | 20 -
markdown/tests/safe_mode/unsafe_urls.txt | 27 -
markdown/tests/test_apis.py | 214 -----
markdown/tests/util.py | 15 -
setup.py | 4 +-
tests/__init__.py | 117 +++
tests/basic/amps-and-angle-encoding.html | 9 +
tests/basic/amps-and-angle-encoding.txt | 21 +
tests/basic/angle-links-and-img.html | 4 +
tests/basic/angle-links-and-img.txt | 4 +
tests/basic/auto-links.html | 15 +
tests/basic/auto-links.txt | 17 +
tests/basic/backlash-escapes.html | 67 ++
tests/basic/backlash-escapes.txt | 104 +++
tests/basic/benchmark.dat | 20 +
tests/basic/blockquotes-with-code-blocks.html | 12 +
tests/basic/blockquotes-with-code-blocks.txt | 11 +
tests/basic/codeblock-in-list.html | 14 +
tests/basic/codeblock-in-list.txt | 10 +
tests/basic/hard-wrapped.html | 7 +
tests/basic/hard-wrapped.txt | 8 +
tests/basic/horizontal-rules.html | 39 +
tests/basic/horizontal-rules.txt | 67 ++
tests/basic/inline-html-advanced.html | 12 +
tests/basic/inline-html-advanced.txt | 14 +
tests/basic/inline-html-comments.html | 11 +
tests/basic/inline-html-comments.txt | 13 +
tests/basic/inline-html-simple.html | 58 ++
tests/basic/inline-html-simple.txt | 69 ++
tests/basic/links-inline.html | 5 +
tests/basic/links-inline.txt | 9 +
tests/basic/links-reference.html | 10 +
tests/basic/links-reference.txt | 31 +
tests/basic/literal-quotes.html | 2 +
tests/basic/literal-quotes.txt | 7 +
tests/basic/markdown-documentation-basics.html | 243 ++++++
tests/basic/markdown-documentation-basics.txt | 306 +++++++
tests/basic/markdown-syntax.html | 728 ++++++++++++++++
tests/basic/markdown-syntax.txt | 888 +++++++++++++++++++
tests/basic/nested-blockquotes.html | 7 +
tests/basic/nested-blockquotes.txt | 5 +
tests/basic/ordered-and-unordered-list.html | 146 ++++
tests/basic/ordered-and-unordered-list.txt | 122 +++
tests/basic/strong-and-em-together.html | 4 +
tests/basic/strong-and-em-together.txt | 7 +
tests/basic/tabs.html | 23 +
tests/basic/tabs.txt | 21 +
tests/basic/tidyness.html | 8 +
tests/basic/tidyness.txt | 5 +
tests/extensions/codehilite.html | 16 +
tests/extensions/codehilite.txt | 12 +
tests/extensions/extra/abbr.html | 4 +
tests/extensions/extra/abbr.txt | 13 +
tests/extensions/extra/footnote.html | 29 +
tests/extensions/extra/footnote.txt | 14 +
tests/extensions/extra/loose_def_list.html | 21 +
tests/extensions/extra/loose_def_list.txt | 20 +
tests/extensions/extra/markdown-syntax.html | 728 ++++++++++++++++
tests/extensions/extra/markdown-syntax.txt | 888 +++++++++++++++++++
tests/extensions/extra/named_markers.html | 24 +
tests/extensions/extra/named_markers.txt | 9 +
tests/extensions/extra/raw-html.html | 14 +
tests/extensions/extra/raw-html.txt | 12 +
tests/extensions/extra/simple_def-lists.html | 37 +
tests/extensions/extra/simple_def-lists.txt | 29 +
tests/extensions/extra/tables.html | 119 +++
tests/extensions/extra/tables.txt | 34 +
tests/extensions/extra/test.cfg | 17 +
tests/extensions/test.cfg | 17 +
tests/extensions/toc.html | 699 +++++++++++++++
tests/extensions/toc.txt | 851 +++++++++++++++++++
tests/extensions/toc_invalid.html | 6 +
tests/extensions/toc_invalid.txt | 9 +
tests/extensions/toc_nested.html | 16 +
tests/extensions/toc_nested.txt | 9 +
tests/extensions/toc_nested2.html | 14 +
tests/extensions/toc_nested2.txt | 10 +
tests/extensions/wikilinks.html | 9 +
tests/extensions/wikilinks.txt | 14 +
tests/html4/html4.html | 2 +
tests/html4/html4.txt | 2 +
tests/html4/test.cfg | 2 +
tests/misc/CRLF_line_ends.html | 4 +
tests/misc/CRLF_line_ends.txt | 5 +
tests/misc/adjacent-headers.html | 2 +
tests/misc/adjacent-headers.txt | 2 +
tests/misc/amp-in-url.html | 1 +
tests/misc/amp-in-url.txt | 1 +
tests/misc/ampersand.html | 2 +
tests/misc/ampersand.txt | 5 +
tests/misc/arabic.html | 27 +
tests/misc/arabic.txt | 37 +
tests/misc/attributes2.html | 6 +
tests/misc/attributes2.txt | 10 +
tests/misc/autolinks_with_asterisks.html | 1 +
tests/misc/autolinks_with_asterisks.txt | 2 +
tests/misc/autolinks_with_asterisks_russian.html | 1 +
tests/misc/autolinks_with_asterisks_russian.txt | 3 +
tests/misc/backtick-escape.html | 3 +
tests/misc/backtick-escape.txt | 3 +
tests/misc/benchmark.dat | 56 ++
tests/misc/bidi.html | 39 +
tests/misc/bidi.txt | 68 ++
tests/misc/blank-block-quote.html | 3 +
tests/misc/blank-block-quote.txt | 6 +
tests/misc/blockquote-below-paragraph.html | 15 +
tests/misc/blockquote-below-paragraph.txt | 11 +
tests/misc/blockquote-hr.html | 16 +
tests/misc/blockquote-hr.txt | 21 +
tests/misc/blockquote.html | 24 +
tests/misc/blockquote.txt | 21 +
tests/misc/bold_links.html | 1 +
tests/misc/bold_links.txt | 1 +
tests/misc/br.html | 11 +
tests/misc/br.txt | 16 +
tests/misc/bracket_re.html | 60 ++
tests/misc/bracket_re.txt | 61 ++
tests/misc/code-first-line.html | 2 +
tests/misc/code-first-line.txt | 1 +
tests/misc/comments.html | 5 +
tests/misc/comments.txt | 7 +
tests/misc/div.html | 5 +
tests/misc/div.txt | 5 +
tests/misc/em-around-links.html | 13 +
tests/misc/em-around-links.txt | 14 +
tests/misc/em_strong.html | 10 +
tests/misc/em_strong.txt | 20 +
tests/misc/email.html | 2 +
tests/misc/email.txt | 3 +
tests/misc/funky-list.html | 11 +
tests/misc/funky-list.txt | 9 +
tests/misc/h1.html | 3 +
tests/misc/h1.txt | 7 +
tests/misc/hash.html | 11 +
tests/misc/hash.txt | 13 +
tests/misc/headers.html | 10 +
tests/misc/headers.txt | 15 +
tests/misc/hline.html | 2 +
tests/misc/hline.txt | 5 +
tests/misc/html-comments.html | 2 +
tests/misc/html-comments.txt | 2 +
tests/misc/html.html | 13 +
tests/misc/html.txt | 17 +
tests/misc/image-2.html | 2 +
tests/misc/image-2.txt | 3 +
tests/misc/image.html | 1 +
tests/misc/image.txt | 2 +
tests/misc/image_in_links.html | 1 +
tests/misc/image_in_links.txt | 3 +
tests/misc/inside_html.html | 1 +
tests/misc/inside_html.txt | 1 +
tests/misc/japanese.html | 11 +
tests/misc/japanese.txt | 15 +
tests/misc/lazy-block-quote.html | 6 +
tests/misc/lazy-block-quote.txt | 5 +
tests/misc/link-with-parenthesis.html | 1 +
tests/misc/link-with-parenthesis.txt | 1 +
tests/misc/lists.html | 36 +
tests/misc/lists.txt | 31 +
tests/misc/lists2.html | 5 +
tests/misc/lists2.txt | 3 +
tests/misc/lists3.html | 5 +
tests/misc/lists3.txt | 3 +
tests/misc/lists4.html | 8 +
tests/misc/lists4.txt | 5 +
tests/misc/lists5.html | 14 +
tests/misc/lists5.txt | 12 +
tests/misc/lists6.html | 18 +
tests/misc/lists6.txt | 14 +
tests/misc/markup-inside-p.html | 21 +
tests/misc/markup-inside-p.txt | 21 +
tests/misc/mismatched-tags.html | 11 +
tests/misc/mismatched-tags.txt | 9 +
tests/misc/missing-link-def.html | 1 +
tests/misc/missing-link-def.txt | 4 +
tests/misc/more_comments.html | 7 +
tests/misc/more_comments.txt | 9 +
tests/misc/multi-line-tags.html | 5 +
tests/misc/multi-line-tags.txt | 6 +
tests/misc/multi-paragraph-block-quote.html | 6 +
tests/misc/multi-paragraph-block-quote.txt | 8 +
tests/misc/multi-test.html | 20 +
tests/misc/multi-test.txt | 32 +
tests/misc/multiline-comments.html | 17 +
tests/misc/multiline-comments.txt | 18 +
tests/misc/nested-lists.html | 39 +
tests/misc/nested-lists.txt | 24 +
tests/misc/nested-patterns.html | 7 +
tests/misc/nested-patterns.txt | 7 +
tests/misc/normalize.html | 1 +
tests/misc/normalize.txt | 2 +
tests/misc/numeric-entity.html | 2 +
tests/misc/numeric-entity.txt | 4 +
tests/misc/para-with-hr.html | 3 +
tests/misc/para-with-hr.txt | 4 +
tests/misc/php.html | 11 +
tests/misc/php.txt | 13 +
tests/misc/pre.html | 13 +
tests/misc/pre.txt | 14 +
tests/misc/raw_whitespace.html | 8 +
tests/misc/raw_whitespace.txt | 10 +
tests/misc/russian.html | 6 +
tests/misc/russian.txt | 15 +
tests/misc/smart_em.html | 5 +
tests/misc/smart_em.txt | 9 +
tests/misc/some-test.html | 66 ++
tests/misc/some-test.txt | 57 ++
tests/misc/span.html | 6 +
tests/misc/span.txt | 10 +
tests/misc/strong-with-underscores.html | 1 +
tests/misc/strong-with-underscores.txt | 1 +
tests/misc/stronintags.html | 4 +
tests/misc/stronintags.txt | 8 +
tests/misc/tabs-in-lists.html | 42 +
tests/misc/tabs-in-lists.txt | 32 +
tests/misc/two-spaces.html | 21 +
tests/misc/two-spaces.txt | 17 +
tests/misc/uche.html | 3 +
tests/misc/uche.txt | 7 +
tests/misc/underscores.html | 6 +
tests/misc/underscores.txt | 11 +
tests/misc/url_spaces.html | 2 +
tests/misc/url_spaces.txt | 4 +
tests/php/Auto Links.text | 3 +
tests/php/Auto Links.xhtml | 3 +
tests/php/Backslash escapes.text | 1 +
tests/php/Backslash escapes.xhtml | 1 +
tests/php/Code Spans.text | 6 +
tests/php/Code Spans.xhtml | 6 +
tests/php/Code block in a list item.text | 15 +
tests/php/Code block in a list item.xhtml | 18 +
tests/php/Code block on second line.text | 2 +
tests/php/Code block on second line.xhtml | 2 +
tests/php/Email auto links.text | 3 +
tests/php/Email auto links.xhtml | 3 +
tests/php/Emphasis.text | 80 ++
tests/php/Emphasis.xhtml | 83 ++
tests/php/Empty List Item.text | 35 +
tests/php/Empty List Item.xhtml | 47 +
tests/php/Headers.text | 9 +
tests/php/Headers.xhtml | 39 +
tests/php/Horizontal Rules.text | 29 +
tests/php/Horizontal Rules.xhtml | 30 +
tests/php/Inline HTML (Simple).text | 15 +
tests/php/Inline HTML (Simple).xhtml | 15 +
tests/php/Inline HTML (Span).text | 4 +
tests/php/Inline HTML (Span).xhtml | 4 +
tests/php/Inline HTML comments.text | 9 +
tests/php/Inline HTML comments.xhtml | 9 +
tests/php/Ins & del.text | 17 +
tests/php/Ins & del.xhtml | 17 +
tests/php/License | 339 ++++++++
tests/php/Links, inline style.text | 1 +
tests/php/Links, inline style.xhtml | 1 +
tests/php/MD5 Hashes.text | 11 +
tests/php/MD5 Hashes.xhtml | 11 +
tests/php/Mixed OLs and ULs.text | 13 +
tests/php/Mixed OLs and ULs.xhtml | 21 +
tests/php/Nesting.text | 11 +
tests/php/Nesting.xhtml | 11 +
tests/php/PHP-Specific Bugs.text | 22 +
tests/php/PHP-Specific Bugs.xhtml | 17 +
tests/php/Parens in URL.text | 14 +
tests/php/Parens in URL.xhtml | 11 +
tests/php/Quotes in attributes.text | 5 +
tests/php/Quotes in attributes.xhtml | 5 +
tests/php/Tight blocks.text | 1 +
tests/php/Tight blocks.xhtml | 21 +
tests/php/extra/Abbr.text | 31 +
tests/php/extra/Abbr.xhtml | 15 +
tests/php/extra/Definition Lists.text | 115 +++
tests/php/extra/Definition Lists.xhtml | 155 ++++
tests/php/extra/Emphasis.text | 80 ++
tests/php/extra/Emphasis.xhtml | 83 ++
tests/php/extra/Fenced Code Blocks.text | 60 ++
tests/php/extra/Fenced Code Blocks.xhtml | 53 ++
tests/php/extra/Footnotes.text | 61 ++
tests/php/extra/Footnotes.xhtml | 96 +++
.../extra/Inline HTML with Markdown content.text | 104 +++
.../extra/Inline HTML with Markdown content.xhtml | 125 +++
tests/php/extra/Tables.text | 104 +++
tests/php/extra/Tables.xhtml | 310 +++++++
tests/php/extra/test.cfg | 6 +
tests/php/test.cfg | 5 +
tests/pl/Tests_2004/Amps and angle encoding.html | 17 +
tests/pl/Tests_2004/Amps and angle encoding.text | 21 +
tests/pl/Tests_2004/Auto links.html | 18 +
tests/pl/Tests_2004/Auto links.text | 13 +
tests/pl/Tests_2004/Backslash escapes.html | 102 +++
tests/pl/Tests_2004/Backslash escapes.text | 104 +++
.../Tests_2004/Blockquotes with code blocks.html | 15 +
.../Tests_2004/Blockquotes with code blocks.text | 11 +
...rd-wrapped paragraphs with list-like lines.html | 8 +
...rd-wrapped paragraphs with list-like lines.text | 8 +
tests/pl/Tests_2004/Horizontal rules.html | 71 ++
tests/pl/Tests_2004/Horizontal rules.text | 67 ++
tests/pl/Tests_2004/Inline HTML (Advanced).html | 14 +
tests/pl/Tests_2004/Inline HTML (Advanced).text | 14 +
tests/pl/Tests_2004/Inline HTML (Simple).html | 72 ++
tests/pl/Tests_2004/Inline HTML (Simple).text | 69 ++
tests/pl/Tests_2004/Inline HTML comments.html | 13 +
tests/pl/Tests_2004/Inline HTML comments.text | 13 +
tests/pl/Tests_2004/Links, inline style.html | 9 +
tests/pl/Tests_2004/Links, inline style.text | 9 +
tests/pl/Tests_2004/Links, reference style.html | 18 +
tests/pl/Tests_2004/Links, reference style.text | 31 +
tests/pl/Tests_2004/Literal quotes in titles.html | 3 +
tests/pl/Tests_2004/Literal quotes in titles.text | 7 +
.../Markdown Documentation - Basics.html | 314 +++++++
.../Markdown Documentation - Basics.text | 306 +++++++
.../Markdown Documentation - Syntax.html | 942 +++++++++++++++++++++
.../Markdown Documentation - Syntax.text | 888 +++++++++++++++++++
tests/pl/Tests_2004/Nested blockquotes.html | 9 +
tests/pl/Tests_2004/Nested blockquotes.text | 5 +
.../pl/Tests_2004/Ordered and unordered lists.html | 137 +++
.../pl/Tests_2004/Ordered and unordered lists.text | 122 +++
tests/pl/Tests_2004/Strong and em together.html | 7 +
tests/pl/Tests_2004/Strong and em together.text | 7 +
tests/pl/Tests_2004/Tabs.html | 25 +
tests/pl/Tests_2004/Tabs.text | 21 +
tests/pl/Tests_2004/Tidyness.html | 8 +
tests/pl/Tests_2004/Tidyness.text | 5 +
tests/pl/Tests_2004/Yuri-Attributes.html | 28 +
tests/pl/Tests_2004/Yuri-Attributes.text | 19 +
tests/pl/Tests_2004/Yuri-Email.html | 18 +
tests/pl/Tests_2004/Yuri-Email.text | 7 +
tests/pl/Tests_2004/Yuri-Footnotes.html | 46 +
tests/pl/Tests_2004/Yuri-Footnotes.text | 32 +
tests/pl/Tests_2004/Yuri-Links-in-Headers.html | 15 +
tests/pl/Tests_2004/Yuri-Links-in-Headers.text | 18 +
tests/pl/Tests_2004/test.cfg | 10 +
tests/pl/Tests_2007/Amps and angle encoding.html | 17 +
tests/pl/Tests_2007/Amps and angle encoding.text | 21 +
tests/pl/Tests_2007/Auto links.html | 18 +
tests/pl/Tests_2007/Auto links.text | 13 +
tests/pl/Tests_2007/Backslash escapes.html | 118 +++
tests/pl/Tests_2007/Backslash escapes.text | 120 +++
.../Tests_2007/Blockquotes with code blocks.html | 15 +
.../Tests_2007/Blockquotes with code blocks.text | 11 +
tests/pl/Tests_2007/Code Blocks.html | 18 +
tests/pl/Tests_2007/Code Blocks.text | 14 +
tests/pl/Tests_2007/Code Spans.html | 5 +
tests/pl/Tests_2007/Code Spans.text | 5 +
...rd-wrapped paragraphs with list-like lines.html | 8 +
...rd-wrapped paragraphs with list-like lines.text | 8 +
tests/pl/Tests_2007/Horizontal rules.html | 71 ++
tests/pl/Tests_2007/Horizontal rules.text | 67 ++
tests/pl/Tests_2007/Images.html | 21 +
tests/pl/Tests_2007/Images.text | 26 +
tests/pl/Tests_2007/Inline HTML (Advanced).html | 30 +
tests/pl/Tests_2007/Inline HTML (Advanced).text | 30 +
tests/pl/Tests_2007/Inline HTML (Simple).html | 72 ++
tests/pl/Tests_2007/Inline HTML (Simple).text | 69 ++
tests/pl/Tests_2007/Inline HTML comments.html | 13 +
tests/pl/Tests_2007/Inline HTML comments.text | 13 +
tests/pl/Tests_2007/Links, inline style.html | 23 +
tests/pl/Tests_2007/Links, inline style.text | 24 +
tests/pl/Tests_2007/Links, reference style.html | 52 ++
tests/pl/Tests_2007/Links, reference style.text | 71 ++
.../pl/Tests_2007/Links, shortcut references.html | 9 +
.../pl/Tests_2007/Links, shortcut references.text | 20 +
tests/pl/Tests_2007/Literal quotes in titles.html | 3 +
tests/pl/Tests_2007/Literal quotes in titles.text | 7 +
.../Markdown Documentation - Basics.html | 314 +++++++
.../Markdown Documentation - Basics.text | 306 +++++++
.../Markdown Documentation - Syntax.html | 942 +++++++++++++++++++++
.../Markdown Documentation - Syntax.text | 888 +++++++++++++++++++
tests/pl/Tests_2007/Nested blockquotes.html | 9 +
tests/pl/Tests_2007/Nested blockquotes.text | 5 +
.../pl/Tests_2007/Ordered and unordered lists.html | 148 ++++
.../pl/Tests_2007/Ordered and unordered lists.text | 131 +++
tests/pl/Tests_2007/Strong and em together.html | 7 +
tests/pl/Tests_2007/Strong and em together.text | 7 +
tests/pl/Tests_2007/Tabs.html | 25 +
tests/pl/Tests_2007/Tabs.text | 21 +
tests/pl/Tests_2007/Tidyness.html | 8 +
tests/pl/Tests_2007/Tidyness.text | 5 +
tests/pl/Tests_2007/test.cfg | 5 +
tests/plugins.py | 115 +++
tests/safe_mode/inline-html-advanced.html | 11 +
tests/safe_mode/inline-html-advanced.txt | 14 +
tests/safe_mode/inline-html-comments.html | 8 +
tests/safe_mode/inline-html-comments.txt | 13 +
tests/safe_mode/inline-html-simple.html | 45 +
tests/safe_mode/inline-html-simple.txt | 69 ++
tests/safe_mode/remove.html | 34 +
tests/safe_mode/remove.txt | 69 ++
tests/safe_mode/replace.html | 34 +
tests/safe_mode/replace.txt | 69 ++
tests/safe_mode/script_tags.html | 28 +
tests/safe_mode/script_tags.txt | 33 +
tests/safe_mode/test.cfg | 8 +
tests/safe_mode/unsafe_urls.html | 20 +
tests/safe_mode/unsafe_urls.txt | 27 +
tests/test_apis.py | 214 +++++
tests/util.py | 15 +
784 files changed, 19449 insertions(+), 19452 deletions(-)
delete mode 100644 markdown/tests/__init__.py
delete mode 100644 markdown/tests/basic/amps-and-angle-encoding.html
delete mode 100644 markdown/tests/basic/amps-and-angle-encoding.txt
delete mode 100644 markdown/tests/basic/angle-links-and-img.html
delete mode 100644 markdown/tests/basic/angle-links-and-img.txt
delete mode 100644 markdown/tests/basic/auto-links.html
delete mode 100644 markdown/tests/basic/auto-links.txt
delete mode 100644 markdown/tests/basic/backlash-escapes.html
delete mode 100644 markdown/tests/basic/backlash-escapes.txt
delete mode 100644 markdown/tests/basic/benchmark.dat
delete mode 100644 markdown/tests/basic/blockquotes-with-code-blocks.html
delete mode 100644 markdown/tests/basic/blockquotes-with-code-blocks.txt
delete mode 100644 markdown/tests/basic/codeblock-in-list.html
delete mode 100644 markdown/tests/basic/codeblock-in-list.txt
delete mode 100644 markdown/tests/basic/hard-wrapped.html
delete mode 100644 markdown/tests/basic/hard-wrapped.txt
delete mode 100644 markdown/tests/basic/horizontal-rules.html
delete mode 100644 markdown/tests/basic/horizontal-rules.txt
delete mode 100644 markdown/tests/basic/inline-html-advanced.html
delete mode 100644 markdown/tests/basic/inline-html-advanced.txt
delete mode 100644 markdown/tests/basic/inline-html-comments.html
delete mode 100644 markdown/tests/basic/inline-html-comments.txt
delete mode 100644 markdown/tests/basic/inline-html-simple.html
delete mode 100644 markdown/tests/basic/inline-html-simple.txt
delete mode 100644 markdown/tests/basic/links-inline.html
delete mode 100644 markdown/tests/basic/links-inline.txt
delete mode 100644 markdown/tests/basic/links-reference.html
delete mode 100644 markdown/tests/basic/links-reference.txt
delete mode 100644 markdown/tests/basic/literal-quotes.html
delete mode 100644 markdown/tests/basic/literal-quotes.txt
delete mode 100644 markdown/tests/basic/markdown-documentation-basics.html
delete mode 100644 markdown/tests/basic/markdown-documentation-basics.txt
delete mode 100644 markdown/tests/basic/markdown-syntax.html
delete mode 100644 markdown/tests/basic/markdown-syntax.txt
delete mode 100644 markdown/tests/basic/nested-blockquotes.html
delete mode 100644 markdown/tests/basic/nested-blockquotes.txt
delete mode 100644 markdown/tests/basic/ordered-and-unordered-list.html
delete mode 100644 markdown/tests/basic/ordered-and-unordered-list.txt
delete mode 100644 markdown/tests/basic/strong-and-em-together.html
delete mode 100644 markdown/tests/basic/strong-and-em-together.txt
delete mode 100644 markdown/tests/basic/tabs.html
delete mode 100644 markdown/tests/basic/tabs.txt
delete mode 100644 markdown/tests/basic/tidyness.html
delete mode 100644 markdown/tests/basic/tidyness.txt
delete mode 100644 markdown/tests/extensions/codehilite.html
delete mode 100644 markdown/tests/extensions/codehilite.txt
delete mode 100644 markdown/tests/extensions/extra/abbr.html
delete mode 100644 markdown/tests/extensions/extra/abbr.txt
delete mode 100644 markdown/tests/extensions/extra/footnote.html
delete mode 100644 markdown/tests/extensions/extra/footnote.txt
delete mode 100644 markdown/tests/extensions/extra/loose_def_list.html
delete mode 100644 markdown/tests/extensions/extra/loose_def_list.txt
delete mode 100644 markdown/tests/extensions/extra/markdown-syntax.html
delete mode 100644 markdown/tests/extensions/extra/markdown-syntax.txt
delete mode 100644 markdown/tests/extensions/extra/named_markers.html
delete mode 100644 markdown/tests/extensions/extra/named_markers.txt
delete mode 100644 markdown/tests/extensions/extra/raw-html.html
delete mode 100644 markdown/tests/extensions/extra/raw-html.txt
delete mode 100644 markdown/tests/extensions/extra/simple_def-lists.html
delete mode 100644 markdown/tests/extensions/extra/simple_def-lists.txt
delete mode 100644 markdown/tests/extensions/extra/tables.html
delete mode 100644 markdown/tests/extensions/extra/tables.txt
delete mode 100644 markdown/tests/extensions/extra/test.cfg
delete mode 100644 markdown/tests/extensions/test.cfg
delete mode 100644 markdown/tests/extensions/toc.html
delete mode 100644 markdown/tests/extensions/toc.txt
delete mode 100644 markdown/tests/extensions/toc_invalid.html
delete mode 100644 markdown/tests/extensions/toc_invalid.txt
delete mode 100644 markdown/tests/extensions/toc_nested.html
delete mode 100644 markdown/tests/extensions/toc_nested.txt
delete mode 100644 markdown/tests/extensions/toc_nested2.html
delete mode 100644 markdown/tests/extensions/toc_nested2.txt
delete mode 100644 markdown/tests/extensions/wikilinks.html
delete mode 100644 markdown/tests/extensions/wikilinks.txt
delete mode 100644 markdown/tests/html4/html4.html
delete mode 100644 markdown/tests/html4/html4.txt
delete mode 100644 markdown/tests/html4/test.cfg
delete mode 100644 markdown/tests/misc/CRLF_line_ends.html
delete mode 100644 markdown/tests/misc/CRLF_line_ends.txt
delete mode 100644 markdown/tests/misc/adjacent-headers.html
delete mode 100644 markdown/tests/misc/adjacent-headers.txt
delete mode 100644 markdown/tests/misc/amp-in-url.html
delete mode 100644 markdown/tests/misc/amp-in-url.txt
delete mode 100644 markdown/tests/misc/ampersand.html
delete mode 100644 markdown/tests/misc/ampersand.txt
delete mode 100644 markdown/tests/misc/arabic.html
delete mode 100644 markdown/tests/misc/arabic.txt
delete mode 100644 markdown/tests/misc/attributes2.html
delete mode 100644 markdown/tests/misc/attributes2.txt
delete mode 100644 markdown/tests/misc/autolinks_with_asterisks.html
delete mode 100644 markdown/tests/misc/autolinks_with_asterisks.txt
delete mode 100644 markdown/tests/misc/autolinks_with_asterisks_russian.html
delete mode 100644 markdown/tests/misc/autolinks_with_asterisks_russian.txt
delete mode 100644 markdown/tests/misc/backtick-escape.html
delete mode 100644 markdown/tests/misc/backtick-escape.txt
delete mode 100644 markdown/tests/misc/benchmark.dat
delete mode 100644 markdown/tests/misc/bidi.html
delete mode 100644 markdown/tests/misc/bidi.txt
delete mode 100644 markdown/tests/misc/blank-block-quote.html
delete mode 100644 markdown/tests/misc/blank-block-quote.txt
delete mode 100644 markdown/tests/misc/blockquote-below-paragraph.html
delete mode 100644 markdown/tests/misc/blockquote-below-paragraph.txt
delete mode 100644 markdown/tests/misc/blockquote-hr.html
delete mode 100644 markdown/tests/misc/blockquote-hr.txt
delete mode 100644 markdown/tests/misc/blockquote.html
delete mode 100644 markdown/tests/misc/blockquote.txt
delete mode 100644 markdown/tests/misc/bold_links.html
delete mode 100644 markdown/tests/misc/bold_links.txt
delete mode 100644 markdown/tests/misc/br.html
delete mode 100644 markdown/tests/misc/br.txt
delete mode 100644 markdown/tests/misc/bracket_re.html
delete mode 100644 markdown/tests/misc/bracket_re.txt
delete mode 100644 markdown/tests/misc/code-first-line.html
delete mode 100644 markdown/tests/misc/code-first-line.txt
delete mode 100644 markdown/tests/misc/comments.html
delete mode 100644 markdown/tests/misc/comments.txt
delete mode 100644 markdown/tests/misc/div.html
delete mode 100644 markdown/tests/misc/div.txt
delete mode 100644 markdown/tests/misc/em-around-links.html
delete mode 100644 markdown/tests/misc/em-around-links.txt
delete mode 100644 markdown/tests/misc/em_strong.html
delete mode 100644 markdown/tests/misc/em_strong.txt
delete mode 100644 markdown/tests/misc/email.html
delete mode 100644 markdown/tests/misc/email.txt
delete mode 100644 markdown/tests/misc/funky-list.html
delete mode 100644 markdown/tests/misc/funky-list.txt
delete mode 100644 markdown/tests/misc/h1.html
delete mode 100644 markdown/tests/misc/h1.txt
delete mode 100644 markdown/tests/misc/hash.html
delete mode 100644 markdown/tests/misc/hash.txt
delete mode 100644 markdown/tests/misc/headers.html
delete mode 100644 markdown/tests/misc/headers.txt
delete mode 100644 markdown/tests/misc/hline.html
delete mode 100644 markdown/tests/misc/hline.txt
delete mode 100644 markdown/tests/misc/html-comments.html
delete mode 100644 markdown/tests/misc/html-comments.txt
delete mode 100644 markdown/tests/misc/html.html
delete mode 100644 markdown/tests/misc/html.txt
delete mode 100644 markdown/tests/misc/image-2.html
delete mode 100644 markdown/tests/misc/image-2.txt
delete mode 100644 markdown/tests/misc/image.html
delete mode 100644 markdown/tests/misc/image.txt
delete mode 100644 markdown/tests/misc/image_in_links.html
delete mode 100644 markdown/tests/misc/image_in_links.txt
delete mode 100644 markdown/tests/misc/inside_html.html
delete mode 100644 markdown/tests/misc/inside_html.txt
delete mode 100644 markdown/tests/misc/japanese.html
delete mode 100644 markdown/tests/misc/japanese.txt
delete mode 100644 markdown/tests/misc/lazy-block-quote.html
delete mode 100644 markdown/tests/misc/lazy-block-quote.txt
delete mode 100644 markdown/tests/misc/link-with-parenthesis.html
delete mode 100644 markdown/tests/misc/link-with-parenthesis.txt
delete mode 100644 markdown/tests/misc/lists.html
delete mode 100644 markdown/tests/misc/lists.txt
delete mode 100644 markdown/tests/misc/lists2.html
delete mode 100644 markdown/tests/misc/lists2.txt
delete mode 100644 markdown/tests/misc/lists3.html
delete mode 100644 markdown/tests/misc/lists3.txt
delete mode 100644 markdown/tests/misc/lists4.html
delete mode 100644 markdown/tests/misc/lists4.txt
delete mode 100644 markdown/tests/misc/lists5.html
delete mode 100644 markdown/tests/misc/lists5.txt
delete mode 100644 markdown/tests/misc/lists6.html
delete mode 100644 markdown/tests/misc/lists6.txt
delete mode 100644 markdown/tests/misc/markup-inside-p.html
delete mode 100644 markdown/tests/misc/markup-inside-p.txt
delete mode 100644 markdown/tests/misc/mismatched-tags.html
delete mode 100644 markdown/tests/misc/mismatched-tags.txt
delete mode 100644 markdown/tests/misc/missing-link-def.html
delete mode 100644 markdown/tests/misc/missing-link-def.txt
delete mode 100644 markdown/tests/misc/more_comments.html
delete mode 100644 markdown/tests/misc/more_comments.txt
delete mode 100644 markdown/tests/misc/multi-line-tags.html
delete mode 100644 markdown/tests/misc/multi-line-tags.txt
delete mode 100644 markdown/tests/misc/multi-paragraph-block-quote.html
delete mode 100644 markdown/tests/misc/multi-paragraph-block-quote.txt
delete mode 100644 markdown/tests/misc/multi-test.html
delete mode 100644 markdown/tests/misc/multi-test.txt
delete mode 100644 markdown/tests/misc/multiline-comments.html
delete mode 100644 markdown/tests/misc/multiline-comments.txt
delete mode 100644 markdown/tests/misc/nested-lists.html
delete mode 100644 markdown/tests/misc/nested-lists.txt
delete mode 100644 markdown/tests/misc/nested-patterns.html
delete mode 100644 markdown/tests/misc/nested-patterns.txt
delete mode 100644 markdown/tests/misc/normalize.html
delete mode 100644 markdown/tests/misc/normalize.txt
delete mode 100644 markdown/tests/misc/numeric-entity.html
delete mode 100644 markdown/tests/misc/numeric-entity.txt
delete mode 100644 markdown/tests/misc/para-with-hr.html
delete mode 100644 markdown/tests/misc/para-with-hr.txt
delete mode 100644 markdown/tests/misc/php.html
delete mode 100644 markdown/tests/misc/php.txt
delete mode 100644 markdown/tests/misc/pre.html
delete mode 100644 markdown/tests/misc/pre.txt
delete mode 100644 markdown/tests/misc/raw_whitespace.html
delete mode 100644 markdown/tests/misc/raw_whitespace.txt
delete mode 100644 markdown/tests/misc/russian.html
delete mode 100644 markdown/tests/misc/russian.txt
delete mode 100644 markdown/tests/misc/smart_em.html
delete mode 100644 markdown/tests/misc/smart_em.txt
delete mode 100644 markdown/tests/misc/some-test.html
delete mode 100644 markdown/tests/misc/some-test.txt
delete mode 100644 markdown/tests/misc/span.html
delete mode 100644 markdown/tests/misc/span.txt
delete mode 100644 markdown/tests/misc/strong-with-underscores.html
delete mode 100644 markdown/tests/misc/strong-with-underscores.txt
delete mode 100644 markdown/tests/misc/stronintags.html
delete mode 100644 markdown/tests/misc/stronintags.txt
delete mode 100644 markdown/tests/misc/tabs-in-lists.html
delete mode 100644 markdown/tests/misc/tabs-in-lists.txt
delete mode 100644 markdown/tests/misc/two-spaces.html
delete mode 100644 markdown/tests/misc/two-spaces.txt
delete mode 100644 markdown/tests/misc/uche.html
delete mode 100644 markdown/tests/misc/uche.txt
delete mode 100644 markdown/tests/misc/underscores.html
delete mode 100644 markdown/tests/misc/underscores.txt
delete mode 100644 markdown/tests/misc/url_spaces.html
delete mode 100644 markdown/tests/misc/url_spaces.txt
delete mode 100644 markdown/tests/php/Auto Links.text
delete mode 100644 markdown/tests/php/Auto Links.xhtml
delete mode 100644 markdown/tests/php/Backslash escapes.text
delete mode 100644 markdown/tests/php/Backslash escapes.xhtml
delete mode 100644 markdown/tests/php/Code Spans.text
delete mode 100644 markdown/tests/php/Code Spans.xhtml
delete mode 100644 markdown/tests/php/Code block in a list item.text
delete mode 100644 markdown/tests/php/Code block in a list item.xhtml
delete mode 100644 markdown/tests/php/Code block on second line.text
delete mode 100644 markdown/tests/php/Code block on second line.xhtml
delete mode 100644 markdown/tests/php/Email auto links.text
delete mode 100644 markdown/tests/php/Email auto links.xhtml
delete mode 100644 markdown/tests/php/Emphasis.text
delete mode 100644 markdown/tests/php/Emphasis.xhtml
delete mode 100644 markdown/tests/php/Empty List Item.text
delete mode 100644 markdown/tests/php/Empty List Item.xhtml
delete mode 100644 markdown/tests/php/Headers.text
delete mode 100644 markdown/tests/php/Headers.xhtml
delete mode 100644 markdown/tests/php/Horizontal Rules.text
delete mode 100644 markdown/tests/php/Horizontal Rules.xhtml
delete mode 100644 markdown/tests/php/Inline HTML (Simple).text
delete mode 100644 markdown/tests/php/Inline HTML (Simple).xhtml
delete mode 100644 markdown/tests/php/Inline HTML (Span).text
delete mode 100644 markdown/tests/php/Inline HTML (Span).xhtml
delete mode 100644 markdown/tests/php/Inline HTML comments.text
delete mode 100644 markdown/tests/php/Inline HTML comments.xhtml
delete mode 100644 markdown/tests/php/Ins & del.text
delete mode 100644 markdown/tests/php/Ins & del.xhtml
delete mode 100644 markdown/tests/php/License
delete mode 100644 markdown/tests/php/Links, inline style.text
delete mode 100644 markdown/tests/php/Links, inline style.xhtml
delete mode 100644 markdown/tests/php/MD5 Hashes.text
delete mode 100644 markdown/tests/php/MD5 Hashes.xhtml
delete mode 100644 markdown/tests/php/Mixed OLs and ULs.text
delete mode 100644 markdown/tests/php/Mixed OLs and ULs.xhtml
delete mode 100644 markdown/tests/php/Nesting.text
delete mode 100644 markdown/tests/php/Nesting.xhtml
delete mode 100644 markdown/tests/php/PHP-Specific Bugs.text
delete mode 100644 markdown/tests/php/PHP-Specific Bugs.xhtml
delete mode 100644 markdown/tests/php/Parens in URL.text
delete mode 100644 markdown/tests/php/Parens in URL.xhtml
delete mode 100644 markdown/tests/php/Quotes in attributes.text
delete mode 100644 markdown/tests/php/Quotes in attributes.xhtml
delete mode 100644 markdown/tests/php/Tight blocks.text
delete mode 100644 markdown/tests/php/Tight blocks.xhtml
delete mode 100644 markdown/tests/php/extra/Abbr.text
delete mode 100644 markdown/tests/php/extra/Abbr.xhtml
delete mode 100644 markdown/tests/php/extra/Definition Lists.text
delete mode 100644 markdown/tests/php/extra/Definition Lists.xhtml
delete mode 100644 markdown/tests/php/extra/Emphasis.text
delete mode 100644 markdown/tests/php/extra/Emphasis.xhtml
delete mode 100644 markdown/tests/php/extra/Fenced Code Blocks.text
delete mode 100644 markdown/tests/php/extra/Fenced Code Blocks.xhtml
delete mode 100644 markdown/tests/php/extra/Footnotes.text
delete mode 100644 markdown/tests/php/extra/Footnotes.xhtml
delete mode 100644 markdown/tests/php/extra/Inline HTML with Markdown content.text
delete mode 100644 markdown/tests/php/extra/Inline HTML with Markdown content.xhtml
delete mode 100644 markdown/tests/php/extra/Tables.text
delete mode 100644 markdown/tests/php/extra/Tables.xhtml
delete mode 100644 markdown/tests/php/extra/test.cfg
delete mode 100644 markdown/tests/php/test.cfg
delete mode 100644 markdown/tests/pl/Tests_2004/Amps and angle encoding.html
delete mode 100644 markdown/tests/pl/Tests_2004/Amps and angle encoding.text
delete mode 100644 markdown/tests/pl/Tests_2004/Auto links.html
delete mode 100644 markdown/tests/pl/Tests_2004/Auto links.text
delete mode 100644 markdown/tests/pl/Tests_2004/Backslash escapes.html
delete mode 100644 markdown/tests/pl/Tests_2004/Backslash escapes.text
delete mode 100644 markdown/tests/pl/Tests_2004/Blockquotes with code blocks.html
delete mode 100644 markdown/tests/pl/Tests_2004/Blockquotes with code blocks.text
delete mode 100644 markdown/tests/pl/Tests_2004/Hard-wrapped paragraphs with list-like lines.html
delete mode 100644 markdown/tests/pl/Tests_2004/Hard-wrapped paragraphs with list-like lines.text
delete mode 100644 markdown/tests/pl/Tests_2004/Horizontal rules.html
delete mode 100644 markdown/tests/pl/Tests_2004/Horizontal rules.text
delete mode 100644 markdown/tests/pl/Tests_2004/Inline HTML (Advanced).html
delete mode 100644 markdown/tests/pl/Tests_2004/Inline HTML (Advanced).text
delete mode 100644 markdown/tests/pl/Tests_2004/Inline HTML (Simple).html
delete mode 100644 markdown/tests/pl/Tests_2004/Inline HTML (Simple).text
delete mode 100644 markdown/tests/pl/Tests_2004/Inline HTML comments.html
delete mode 100644 markdown/tests/pl/Tests_2004/Inline HTML comments.text
delete mode 100644 markdown/tests/pl/Tests_2004/Links, inline style.html
delete mode 100644 markdown/tests/pl/Tests_2004/Links, inline style.text
delete mode 100644 markdown/tests/pl/Tests_2004/Links, reference style.html
delete mode 100644 markdown/tests/pl/Tests_2004/Links, reference style.text
delete mode 100644 markdown/tests/pl/Tests_2004/Literal quotes in titles.html
delete mode 100644 markdown/tests/pl/Tests_2004/Literal quotes in titles.text
delete mode 100644 markdown/tests/pl/Tests_2004/Markdown Documentation - Basics.html
delete mode 100644 markdown/tests/pl/Tests_2004/Markdown Documentation - Basics.text
delete mode 100644 markdown/tests/pl/Tests_2004/Markdown Documentation - Syntax.html
delete mode 100644 markdown/tests/pl/Tests_2004/Markdown Documentation - Syntax.text
delete mode 100644 markdown/tests/pl/Tests_2004/Nested blockquotes.html
delete mode 100644 markdown/tests/pl/Tests_2004/Nested blockquotes.text
delete mode 100644 markdown/tests/pl/Tests_2004/Ordered and unordered lists.html
delete mode 100644 markdown/tests/pl/Tests_2004/Ordered and unordered lists.text
delete mode 100644 markdown/tests/pl/Tests_2004/Strong and em together.html
delete mode 100644 markdown/tests/pl/Tests_2004/Strong and em together.text
delete mode 100644 markdown/tests/pl/Tests_2004/Tabs.html
delete mode 100644 markdown/tests/pl/Tests_2004/Tabs.text
delete mode 100644 markdown/tests/pl/Tests_2004/Tidyness.html
delete mode 100644 markdown/tests/pl/Tests_2004/Tidyness.text
delete mode 100644 markdown/tests/pl/Tests_2004/Yuri-Attributes.html
delete mode 100644 markdown/tests/pl/Tests_2004/Yuri-Attributes.text
delete mode 100644 markdown/tests/pl/Tests_2004/Yuri-Email.html
delete mode 100644 markdown/tests/pl/Tests_2004/Yuri-Email.text
delete mode 100644 markdown/tests/pl/Tests_2004/Yuri-Footnotes.html
delete mode 100644 markdown/tests/pl/Tests_2004/Yuri-Footnotes.text
delete mode 100644 markdown/tests/pl/Tests_2004/Yuri-Links-in-Headers.html
delete mode 100644 markdown/tests/pl/Tests_2004/Yuri-Links-in-Headers.text
delete mode 100644 markdown/tests/pl/Tests_2004/test.cfg
delete mode 100644 markdown/tests/pl/Tests_2007/Amps and angle encoding.html
delete mode 100644 markdown/tests/pl/Tests_2007/Amps and angle encoding.text
delete mode 100644 markdown/tests/pl/Tests_2007/Auto links.html
delete mode 100644 markdown/tests/pl/Tests_2007/Auto links.text
delete mode 100644 markdown/tests/pl/Tests_2007/Backslash escapes.html
delete mode 100644 markdown/tests/pl/Tests_2007/Backslash escapes.text
delete mode 100644 markdown/tests/pl/Tests_2007/Blockquotes with code blocks.html
delete mode 100644 markdown/tests/pl/Tests_2007/Blockquotes with code blocks.text
delete mode 100644 markdown/tests/pl/Tests_2007/Code Blocks.html
delete mode 100644 markdown/tests/pl/Tests_2007/Code Blocks.text
delete mode 100644 markdown/tests/pl/Tests_2007/Code Spans.html
delete mode 100644 markdown/tests/pl/Tests_2007/Code Spans.text
delete mode 100644 markdown/tests/pl/Tests_2007/Hard-wrapped paragraphs with list-like lines.html
delete mode 100644 markdown/tests/pl/Tests_2007/Hard-wrapped paragraphs with list-like lines.text
delete mode 100644 markdown/tests/pl/Tests_2007/Horizontal rules.html
delete mode 100644 markdown/tests/pl/Tests_2007/Horizontal rules.text
delete mode 100644 markdown/tests/pl/Tests_2007/Images.html
delete mode 100644 markdown/tests/pl/Tests_2007/Images.text
delete mode 100644 markdown/tests/pl/Tests_2007/Inline HTML (Advanced).html
delete mode 100644 markdown/tests/pl/Tests_2007/Inline HTML (Advanced).text
delete mode 100644 markdown/tests/pl/Tests_2007/Inline HTML (Simple).html
delete mode 100644 markdown/tests/pl/Tests_2007/Inline HTML (Simple).text
delete mode 100644 markdown/tests/pl/Tests_2007/Inline HTML comments.html
delete mode 100644 markdown/tests/pl/Tests_2007/Inline HTML comments.text
delete mode 100644 markdown/tests/pl/Tests_2007/Links, inline style.html
delete mode 100644 markdown/tests/pl/Tests_2007/Links, inline style.text
delete mode 100644 markdown/tests/pl/Tests_2007/Links, reference style.html
delete mode 100644 markdown/tests/pl/Tests_2007/Links, reference style.text
delete mode 100644 markdown/tests/pl/Tests_2007/Links, shortcut references.html
delete mode 100644 markdown/tests/pl/Tests_2007/Links, shortcut references.text
delete mode 100644 markdown/tests/pl/Tests_2007/Literal quotes in titles.html
delete mode 100644 markdown/tests/pl/Tests_2007/Literal quotes in titles.text
delete mode 100644 markdown/tests/pl/Tests_2007/Markdown Documentation - Basics.html
delete mode 100644 markdown/tests/pl/Tests_2007/Markdown Documentation - Basics.text
delete mode 100644 markdown/tests/pl/Tests_2007/Markdown Documentation - Syntax.html
delete mode 100644 markdown/tests/pl/Tests_2007/Markdown Documentation - Syntax.text
delete mode 100644 markdown/tests/pl/Tests_2007/Nested blockquotes.html
delete mode 100644 markdown/tests/pl/Tests_2007/Nested blockquotes.text
delete mode 100644 markdown/tests/pl/Tests_2007/Ordered and unordered lists.html
delete mode 100644 markdown/tests/pl/Tests_2007/Ordered and unordered lists.text
delete mode 100644 markdown/tests/pl/Tests_2007/Strong and em together.html
delete mode 100644 markdown/tests/pl/Tests_2007/Strong and em together.text
delete mode 100644 markdown/tests/pl/Tests_2007/Tabs.html
delete mode 100644 markdown/tests/pl/Tests_2007/Tabs.text
delete mode 100644 markdown/tests/pl/Tests_2007/Tidyness.html
delete mode 100644 markdown/tests/pl/Tests_2007/Tidyness.text
delete mode 100644 markdown/tests/pl/Tests_2007/test.cfg
delete mode 100644 markdown/tests/plugins.py
delete mode 100644 markdown/tests/safe_mode/inline-html-advanced.html
delete mode 100644 markdown/tests/safe_mode/inline-html-advanced.txt
delete mode 100644 markdown/tests/safe_mode/inline-html-comments.html
delete mode 100644 markdown/tests/safe_mode/inline-html-comments.txt
delete mode 100644 markdown/tests/safe_mode/inline-html-simple.html
delete mode 100644 markdown/tests/safe_mode/inline-html-simple.txt
delete mode 100644 markdown/tests/safe_mode/remove.html
delete mode 100644 markdown/tests/safe_mode/remove.txt
delete mode 100644 markdown/tests/safe_mode/replace.html
delete mode 100644 markdown/tests/safe_mode/replace.txt
delete mode 100644 markdown/tests/safe_mode/script_tags.html
delete mode 100644 markdown/tests/safe_mode/script_tags.txt
delete mode 100644 markdown/tests/safe_mode/test.cfg
delete mode 100644 markdown/tests/safe_mode/unsafe_urls.html
delete mode 100644 markdown/tests/safe_mode/unsafe_urls.txt
delete mode 100644 markdown/tests/test_apis.py
delete mode 100644 markdown/tests/util.py
create mode 100644 tests/__init__.py
create mode 100644 tests/basic/amps-and-angle-encoding.html
create mode 100644 tests/basic/amps-and-angle-encoding.txt
create mode 100644 tests/basic/angle-links-and-img.html
create mode 100644 tests/basic/angle-links-and-img.txt
create mode 100644 tests/basic/auto-links.html
create mode 100644 tests/basic/auto-links.txt
create mode 100644 tests/basic/backlash-escapes.html
create mode 100644 tests/basic/backlash-escapes.txt
create mode 100644 tests/basic/benchmark.dat
create mode 100644 tests/basic/blockquotes-with-code-blocks.html
create mode 100644 tests/basic/blockquotes-with-code-blocks.txt
create mode 100644 tests/basic/codeblock-in-list.html
create mode 100644 tests/basic/codeblock-in-list.txt
create mode 100644 tests/basic/hard-wrapped.html
create mode 100644 tests/basic/hard-wrapped.txt
create mode 100644 tests/basic/horizontal-rules.html
create mode 100644 tests/basic/horizontal-rules.txt
create mode 100644 tests/basic/inline-html-advanced.html
create mode 100644 tests/basic/inline-html-advanced.txt
create mode 100644 tests/basic/inline-html-comments.html
create mode 100644 tests/basic/inline-html-comments.txt
create mode 100644 tests/basic/inline-html-simple.html
create mode 100644 tests/basic/inline-html-simple.txt
create mode 100644 tests/basic/links-inline.html
create mode 100644 tests/basic/links-inline.txt
create mode 100644 tests/basic/links-reference.html
create mode 100644 tests/basic/links-reference.txt
create mode 100644 tests/basic/literal-quotes.html
create mode 100644 tests/basic/literal-quotes.txt
create mode 100644 tests/basic/markdown-documentation-basics.html
create mode 100644 tests/basic/markdown-documentation-basics.txt
create mode 100644 tests/basic/markdown-syntax.html
create mode 100644 tests/basic/markdown-syntax.txt
create mode 100644 tests/basic/nested-blockquotes.html
create mode 100644 tests/basic/nested-blockquotes.txt
create mode 100644 tests/basic/ordered-and-unordered-list.html
create mode 100644 tests/basic/ordered-and-unordered-list.txt
create mode 100644 tests/basic/strong-and-em-together.html
create mode 100644 tests/basic/strong-and-em-together.txt
create mode 100644 tests/basic/tabs.html
create mode 100644 tests/basic/tabs.txt
create mode 100644 tests/basic/tidyness.html
create mode 100644 tests/basic/tidyness.txt
create mode 100644 tests/extensions/codehilite.html
create mode 100644 tests/extensions/codehilite.txt
create mode 100644 tests/extensions/extra/abbr.html
create mode 100644 tests/extensions/extra/abbr.txt
create mode 100644 tests/extensions/extra/footnote.html
create mode 100644 tests/extensions/extra/footnote.txt
create mode 100644 tests/extensions/extra/loose_def_list.html
create mode 100644 tests/extensions/extra/loose_def_list.txt
create mode 100644 tests/extensions/extra/markdown-syntax.html
create mode 100644 tests/extensions/extra/markdown-syntax.txt
create mode 100644 tests/extensions/extra/named_markers.html
create mode 100644 tests/extensions/extra/named_markers.txt
create mode 100644 tests/extensions/extra/raw-html.html
create mode 100644 tests/extensions/extra/raw-html.txt
create mode 100644 tests/extensions/extra/simple_def-lists.html
create mode 100644 tests/extensions/extra/simple_def-lists.txt
create mode 100644 tests/extensions/extra/tables.html
create mode 100644 tests/extensions/extra/tables.txt
create mode 100644 tests/extensions/extra/test.cfg
create mode 100644 tests/extensions/test.cfg
create mode 100644 tests/extensions/toc.html
create mode 100644 tests/extensions/toc.txt
create mode 100644 tests/extensions/toc_invalid.html
create mode 100644 tests/extensions/toc_invalid.txt
create mode 100644 tests/extensions/toc_nested.html
create mode 100644 tests/extensions/toc_nested.txt
create mode 100644 tests/extensions/toc_nested2.html
create mode 100644 tests/extensions/toc_nested2.txt
create mode 100644 tests/extensions/wikilinks.html
create mode 100644 tests/extensions/wikilinks.txt
create mode 100644 tests/html4/html4.html
create mode 100644 tests/html4/html4.txt
create mode 100644 tests/html4/test.cfg
create mode 100644 tests/misc/CRLF_line_ends.html
create mode 100644 tests/misc/CRLF_line_ends.txt
create mode 100644 tests/misc/adjacent-headers.html
create mode 100644 tests/misc/adjacent-headers.txt
create mode 100644 tests/misc/amp-in-url.html
create mode 100644 tests/misc/amp-in-url.txt
create mode 100644 tests/misc/ampersand.html
create mode 100644 tests/misc/ampersand.txt
create mode 100644 tests/misc/arabic.html
create mode 100644 tests/misc/arabic.txt
create mode 100644 tests/misc/attributes2.html
create mode 100644 tests/misc/attributes2.txt
create mode 100644 tests/misc/autolinks_with_asterisks.html
create mode 100644 tests/misc/autolinks_with_asterisks.txt
create mode 100644 tests/misc/autolinks_with_asterisks_russian.html
create mode 100644 tests/misc/autolinks_with_asterisks_russian.txt
create mode 100644 tests/misc/backtick-escape.html
create mode 100644 tests/misc/backtick-escape.txt
create mode 100644 tests/misc/benchmark.dat
create mode 100644 tests/misc/bidi.html
create mode 100644 tests/misc/bidi.txt
create mode 100644 tests/misc/blank-block-quote.html
create mode 100644 tests/misc/blank-block-quote.txt
create mode 100644 tests/misc/blockquote-below-paragraph.html
create mode 100644 tests/misc/blockquote-below-paragraph.txt
create mode 100644 tests/misc/blockquote-hr.html
create mode 100644 tests/misc/blockquote-hr.txt
create mode 100644 tests/misc/blockquote.html
create mode 100644 tests/misc/blockquote.txt
create mode 100644 tests/misc/bold_links.html
create mode 100644 tests/misc/bold_links.txt
create mode 100644 tests/misc/br.html
create mode 100644 tests/misc/br.txt
create mode 100644 tests/misc/bracket_re.html
create mode 100644 tests/misc/bracket_re.txt
create mode 100644 tests/misc/code-first-line.html
create mode 100644 tests/misc/code-first-line.txt
create mode 100644 tests/misc/comments.html
create mode 100644 tests/misc/comments.txt
create mode 100644 tests/misc/div.html
create mode 100644 tests/misc/div.txt
create mode 100644 tests/misc/em-around-links.html
create mode 100644 tests/misc/em-around-links.txt
create mode 100644 tests/misc/em_strong.html
create mode 100644 tests/misc/em_strong.txt
create mode 100644 tests/misc/email.html
create mode 100644 tests/misc/email.txt
create mode 100644 tests/misc/funky-list.html
create mode 100644 tests/misc/funky-list.txt
create mode 100644 tests/misc/h1.html
create mode 100644 tests/misc/h1.txt
create mode 100644 tests/misc/hash.html
create mode 100644 tests/misc/hash.txt
create mode 100644 tests/misc/headers.html
create mode 100644 tests/misc/headers.txt
create mode 100644 tests/misc/hline.html
create mode 100644 tests/misc/hline.txt
create mode 100644 tests/misc/html-comments.html
create mode 100644 tests/misc/html-comments.txt
create mode 100644 tests/misc/html.html
create mode 100644 tests/misc/html.txt
create mode 100644 tests/misc/image-2.html
create mode 100644 tests/misc/image-2.txt
create mode 100644 tests/misc/image.html
create mode 100644 tests/misc/image.txt
create mode 100644 tests/misc/image_in_links.html
create mode 100644 tests/misc/image_in_links.txt
create mode 100644 tests/misc/inside_html.html
create mode 100644 tests/misc/inside_html.txt
create mode 100644 tests/misc/japanese.html
create mode 100644 tests/misc/japanese.txt
create mode 100644 tests/misc/lazy-block-quote.html
create mode 100644 tests/misc/lazy-block-quote.txt
create mode 100644 tests/misc/link-with-parenthesis.html
create mode 100644 tests/misc/link-with-parenthesis.txt
create mode 100644 tests/misc/lists.html
create mode 100644 tests/misc/lists.txt
create mode 100644 tests/misc/lists2.html
create mode 100644 tests/misc/lists2.txt
create mode 100644 tests/misc/lists3.html
create mode 100644 tests/misc/lists3.txt
create mode 100644 tests/misc/lists4.html
create mode 100644 tests/misc/lists4.txt
create mode 100644 tests/misc/lists5.html
create mode 100644 tests/misc/lists5.txt
create mode 100644 tests/misc/lists6.html
create mode 100644 tests/misc/lists6.txt
create mode 100644 tests/misc/markup-inside-p.html
create mode 100644 tests/misc/markup-inside-p.txt
create mode 100644 tests/misc/mismatched-tags.html
create mode 100644 tests/misc/mismatched-tags.txt
create mode 100644 tests/misc/missing-link-def.html
create mode 100644 tests/misc/missing-link-def.txt
create mode 100644 tests/misc/more_comments.html
create mode 100644 tests/misc/more_comments.txt
create mode 100644 tests/misc/multi-line-tags.html
create mode 100644 tests/misc/multi-line-tags.txt
create mode 100644 tests/misc/multi-paragraph-block-quote.html
create mode 100644 tests/misc/multi-paragraph-block-quote.txt
create mode 100644 tests/misc/multi-test.html
create mode 100644 tests/misc/multi-test.txt
create mode 100644 tests/misc/multiline-comments.html
create mode 100644 tests/misc/multiline-comments.txt
create mode 100644 tests/misc/nested-lists.html
create mode 100644 tests/misc/nested-lists.txt
create mode 100644 tests/misc/nested-patterns.html
create mode 100644 tests/misc/nested-patterns.txt
create mode 100644 tests/misc/normalize.html
create mode 100644 tests/misc/normalize.txt
create mode 100644 tests/misc/numeric-entity.html
create mode 100644 tests/misc/numeric-entity.txt
create mode 100644 tests/misc/para-with-hr.html
create mode 100644 tests/misc/para-with-hr.txt
create mode 100644 tests/misc/php.html
create mode 100644 tests/misc/php.txt
create mode 100644 tests/misc/pre.html
create mode 100644 tests/misc/pre.txt
create mode 100644 tests/misc/raw_whitespace.html
create mode 100644 tests/misc/raw_whitespace.txt
create mode 100644 tests/misc/russian.html
create mode 100644 tests/misc/russian.txt
create mode 100644 tests/misc/smart_em.html
create mode 100644 tests/misc/smart_em.txt
create mode 100644 tests/misc/some-test.html
create mode 100644 tests/misc/some-test.txt
create mode 100644 tests/misc/span.html
create mode 100644 tests/misc/span.txt
create mode 100644 tests/misc/strong-with-underscores.html
create mode 100644 tests/misc/strong-with-underscores.txt
create mode 100644 tests/misc/stronintags.html
create mode 100644 tests/misc/stronintags.txt
create mode 100644 tests/misc/tabs-in-lists.html
create mode 100644 tests/misc/tabs-in-lists.txt
create mode 100644 tests/misc/two-spaces.html
create mode 100644 tests/misc/two-spaces.txt
create mode 100644 tests/misc/uche.html
create mode 100644 tests/misc/uche.txt
create mode 100644 tests/misc/underscores.html
create mode 100644 tests/misc/underscores.txt
create mode 100644 tests/misc/url_spaces.html
create mode 100644 tests/misc/url_spaces.txt
create mode 100644 tests/php/Auto Links.text
create mode 100644 tests/php/Auto Links.xhtml
create mode 100644 tests/php/Backslash escapes.text
create mode 100644 tests/php/Backslash escapes.xhtml
create mode 100644 tests/php/Code Spans.text
create mode 100644 tests/php/Code Spans.xhtml
create mode 100644 tests/php/Code block in a list item.text
create mode 100644 tests/php/Code block in a list item.xhtml
create mode 100644 tests/php/Code block on second line.text
create mode 100644 tests/php/Code block on second line.xhtml
create mode 100644 tests/php/Email auto links.text
create mode 100644 tests/php/Email auto links.xhtml
create mode 100644 tests/php/Emphasis.text
create mode 100644 tests/php/Emphasis.xhtml
create mode 100644 tests/php/Empty List Item.text
create mode 100644 tests/php/Empty List Item.xhtml
create mode 100644 tests/php/Headers.text
create mode 100644 tests/php/Headers.xhtml
create mode 100644 tests/php/Horizontal Rules.text
create mode 100644 tests/php/Horizontal Rules.xhtml
create mode 100644 tests/php/Inline HTML (Simple).text
create mode 100644 tests/php/Inline HTML (Simple).xhtml
create mode 100644 tests/php/Inline HTML (Span).text
create mode 100644 tests/php/Inline HTML (Span).xhtml
create mode 100644 tests/php/Inline HTML comments.text
create mode 100644 tests/php/Inline HTML comments.xhtml
create mode 100644 tests/php/Ins & del.text
create mode 100644 tests/php/Ins & del.xhtml
create mode 100644 tests/php/License
create mode 100644 tests/php/Links, inline style.text
create mode 100644 tests/php/Links, inline style.xhtml
create mode 100644 tests/php/MD5 Hashes.text
create mode 100644 tests/php/MD5 Hashes.xhtml
create mode 100644 tests/php/Mixed OLs and ULs.text
create mode 100644 tests/php/Mixed OLs and ULs.xhtml
create mode 100644 tests/php/Nesting.text
create mode 100644 tests/php/Nesting.xhtml
create mode 100644 tests/php/PHP-Specific Bugs.text
create mode 100644 tests/php/PHP-Specific Bugs.xhtml
create mode 100644 tests/php/Parens in URL.text
create mode 100644 tests/php/Parens in URL.xhtml
create mode 100644 tests/php/Quotes in attributes.text
create mode 100644 tests/php/Quotes in attributes.xhtml
create mode 100644 tests/php/Tight blocks.text
create mode 100644 tests/php/Tight blocks.xhtml
create mode 100644 tests/php/extra/Abbr.text
create mode 100644 tests/php/extra/Abbr.xhtml
create mode 100644 tests/php/extra/Definition Lists.text
create mode 100644 tests/php/extra/Definition Lists.xhtml
create mode 100644 tests/php/extra/Emphasis.text
create mode 100644 tests/php/extra/Emphasis.xhtml
create mode 100644 tests/php/extra/Fenced Code Blocks.text
create mode 100644 tests/php/extra/Fenced Code Blocks.xhtml
create mode 100644 tests/php/extra/Footnotes.text
create mode 100644 tests/php/extra/Footnotes.xhtml
create mode 100644 tests/php/extra/Inline HTML with Markdown content.text
create mode 100644 tests/php/extra/Inline HTML with Markdown content.xhtml
create mode 100644 tests/php/extra/Tables.text
create mode 100644 tests/php/extra/Tables.xhtml
create mode 100644 tests/php/extra/test.cfg
create mode 100644 tests/php/test.cfg
create mode 100644 tests/pl/Tests_2004/Amps and angle encoding.html
create mode 100644 tests/pl/Tests_2004/Amps and angle encoding.text
create mode 100644 tests/pl/Tests_2004/Auto links.html
create mode 100644 tests/pl/Tests_2004/Auto links.text
create mode 100644 tests/pl/Tests_2004/Backslash escapes.html
create mode 100644 tests/pl/Tests_2004/Backslash escapes.text
create mode 100644 tests/pl/Tests_2004/Blockquotes with code blocks.html
create mode 100644 tests/pl/Tests_2004/Blockquotes with code blocks.text
create mode 100644 tests/pl/Tests_2004/Hard-wrapped paragraphs with list-like lines.html
create mode 100644 tests/pl/Tests_2004/Hard-wrapped paragraphs with list-like lines.text
create mode 100644 tests/pl/Tests_2004/Horizontal rules.html
create mode 100644 tests/pl/Tests_2004/Horizontal rules.text
create mode 100644 tests/pl/Tests_2004/Inline HTML (Advanced).html
create mode 100644 tests/pl/Tests_2004/Inline HTML (Advanced).text
create mode 100644 tests/pl/Tests_2004/Inline HTML (Simple).html
create mode 100644 tests/pl/Tests_2004/Inline HTML (Simple).text
create mode 100644 tests/pl/Tests_2004/Inline HTML comments.html
create mode 100644 tests/pl/Tests_2004/Inline HTML comments.text
create mode 100644 tests/pl/Tests_2004/Links, inline style.html
create mode 100644 tests/pl/Tests_2004/Links, inline style.text
create mode 100644 tests/pl/Tests_2004/Links, reference style.html
create mode 100644 tests/pl/Tests_2004/Links, reference style.text
create mode 100644 tests/pl/Tests_2004/Literal quotes in titles.html
create mode 100644 tests/pl/Tests_2004/Literal quotes in titles.text
create mode 100644 tests/pl/Tests_2004/Markdown Documentation - Basics.html
create mode 100644 tests/pl/Tests_2004/Markdown Documentation - Basics.text
create mode 100644 tests/pl/Tests_2004/Markdown Documentation - Syntax.html
create mode 100644 tests/pl/Tests_2004/Markdown Documentation - Syntax.text
create mode 100644 tests/pl/Tests_2004/Nested blockquotes.html
create mode 100644 tests/pl/Tests_2004/Nested blockquotes.text
create mode 100644 tests/pl/Tests_2004/Ordered and unordered lists.html
create mode 100644 tests/pl/Tests_2004/Ordered and unordered lists.text
create mode 100644 tests/pl/Tests_2004/Strong and em together.html
create mode 100644 tests/pl/Tests_2004/Strong and em together.text
create mode 100644 tests/pl/Tests_2004/Tabs.html
create mode 100644 tests/pl/Tests_2004/Tabs.text
create mode 100644 tests/pl/Tests_2004/Tidyness.html
create mode 100644 tests/pl/Tests_2004/Tidyness.text
create mode 100644 tests/pl/Tests_2004/Yuri-Attributes.html
create mode 100644 tests/pl/Tests_2004/Yuri-Attributes.text
create mode 100644 tests/pl/Tests_2004/Yuri-Email.html
create mode 100644 tests/pl/Tests_2004/Yuri-Email.text
create mode 100644 tests/pl/Tests_2004/Yuri-Footnotes.html
create mode 100644 tests/pl/Tests_2004/Yuri-Footnotes.text
create mode 100644 tests/pl/Tests_2004/Yuri-Links-in-Headers.html
create mode 100644 tests/pl/Tests_2004/Yuri-Links-in-Headers.text
create mode 100644 tests/pl/Tests_2004/test.cfg
create mode 100644 tests/pl/Tests_2007/Amps and angle encoding.html
create mode 100644 tests/pl/Tests_2007/Amps and angle encoding.text
create mode 100644 tests/pl/Tests_2007/Auto links.html
create mode 100644 tests/pl/Tests_2007/Auto links.text
create mode 100644 tests/pl/Tests_2007/Backslash escapes.html
create mode 100644 tests/pl/Tests_2007/Backslash escapes.text
create mode 100644 tests/pl/Tests_2007/Blockquotes with code blocks.html
create mode 100644 tests/pl/Tests_2007/Blockquotes with code blocks.text
create mode 100644 tests/pl/Tests_2007/Code Blocks.html
create mode 100644 tests/pl/Tests_2007/Code Blocks.text
create mode 100644 tests/pl/Tests_2007/Code Spans.html
create mode 100644 tests/pl/Tests_2007/Code Spans.text
create mode 100644 tests/pl/Tests_2007/Hard-wrapped paragraphs with list-like lines.html
create mode 100644 tests/pl/Tests_2007/Hard-wrapped paragraphs with list-like lines.text
create mode 100644 tests/pl/Tests_2007/Horizontal rules.html
create mode 100644 tests/pl/Tests_2007/Horizontal rules.text
create mode 100644 tests/pl/Tests_2007/Images.html
create mode 100644 tests/pl/Tests_2007/Images.text
create mode 100644 tests/pl/Tests_2007/Inline HTML (Advanced).html
create mode 100644 tests/pl/Tests_2007/Inline HTML (Advanced).text
create mode 100644 tests/pl/Tests_2007/Inline HTML (Simple).html
create mode 100644 tests/pl/Tests_2007/Inline HTML (Simple).text
create mode 100644 tests/pl/Tests_2007/Inline HTML comments.html
create mode 100644 tests/pl/Tests_2007/Inline HTML comments.text
create mode 100644 tests/pl/Tests_2007/Links, inline style.html
create mode 100644 tests/pl/Tests_2007/Links, inline style.text
create mode 100644 tests/pl/Tests_2007/Links, reference style.html
create mode 100644 tests/pl/Tests_2007/Links, reference style.text
create mode 100644 tests/pl/Tests_2007/Links, shortcut references.html
create mode 100644 tests/pl/Tests_2007/Links, shortcut references.text
create mode 100644 tests/pl/Tests_2007/Literal quotes in titles.html
create mode 100644 tests/pl/Tests_2007/Literal quotes in titles.text
create mode 100644 tests/pl/Tests_2007/Markdown Documentation - Basics.html
create mode 100644 tests/pl/Tests_2007/Markdown Documentation - Basics.text
create mode 100644 tests/pl/Tests_2007/Markdown Documentation - Syntax.html
create mode 100644 tests/pl/Tests_2007/Markdown Documentation - Syntax.text
create mode 100644 tests/pl/Tests_2007/Nested blockquotes.html
create mode 100644 tests/pl/Tests_2007/Nested blockquotes.text
create mode 100644 tests/pl/Tests_2007/Ordered and unordered lists.html
create mode 100644 tests/pl/Tests_2007/Ordered and unordered lists.text
create mode 100644 tests/pl/Tests_2007/Strong and em together.html
create mode 100644 tests/pl/Tests_2007/Strong and em together.text
create mode 100644 tests/pl/Tests_2007/Tabs.html
create mode 100644 tests/pl/Tests_2007/Tabs.text
create mode 100644 tests/pl/Tests_2007/Tidyness.html
create mode 100644 tests/pl/Tests_2007/Tidyness.text
create mode 100644 tests/pl/Tests_2007/test.cfg
create mode 100644 tests/plugins.py
create mode 100644 tests/safe_mode/inline-html-advanced.html
create mode 100644 tests/safe_mode/inline-html-advanced.txt
create mode 100644 tests/safe_mode/inline-html-comments.html
create mode 100644 tests/safe_mode/inline-html-comments.txt
create mode 100644 tests/safe_mode/inline-html-simple.html
create mode 100644 tests/safe_mode/inline-html-simple.txt
create mode 100644 tests/safe_mode/remove.html
create mode 100644 tests/safe_mode/remove.txt
create mode 100644 tests/safe_mode/replace.html
create mode 100644 tests/safe_mode/replace.txt
create mode 100644 tests/safe_mode/script_tags.html
create mode 100644 tests/safe_mode/script_tags.txt
create mode 100644 tests/safe_mode/test.cfg
create mode 100644 tests/safe_mode/unsafe_urls.html
create mode 100644 tests/safe_mode/unsafe_urls.txt
create mode 100644 tests/test_apis.py
create mode 100644 tests/util.py
diff --git a/MANIFEST.in b/MANIFEST.in
index bdba91b..1cbe234 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,7 +1,6 @@
recursive-include bin *
recursive-include markdown *.py
recursive-include docs *
-recursive-include markdown/tests *.txt *.html *.cfg *.py
-prune markdown/extensions/legacy.py
+recursive-include tests *.txt *.html *.cfg *.py
include setup.py
include MANIFEST
diff --git a/markdown/tests/__init__.py b/markdown/tests/__init__.py
deleted file mode 100644
index d07ae7d..0000000
--- a/markdown/tests/__init__.py
+++ /dev/null
@@ -1,117 +0,0 @@
-import os
-import markdown
-import codecs
-import difflib
-import nose
-import util
-from plugins import HtmlOutput, Markdown
-try:
- import tidy
-except ImportError:
- tidy = None
-
-
-test_dir = os.path.abspath(os.path.dirname(__file__))
-
-def relpath(path, start=test_dir):
- """ reimplement relpath for python 2.3-2.5 from 2.6 """
- if not path:
- raise ValueError('no path secified')
- start_list = os.path.abspath(start).split(os.path.sep)
- path_list = os.path.abspath(path).split(os.path.sep)
- # Work out how much of the filepath is shared by start and path.
- i = len(os.path.commonprefix([start_list, path_list]))
- rel_list = [os.path.pardir] * (len(start_list)-i) + path_list[i:]
- if not rel_list:
- return test_dir
- return os.path.join(*rel_list)
-
-def get_section(file, config):
- """ Get name of config section for given file. """
- filename = os.path.basename(file)
- if config.has_section(filename):
- return filename
- else:
- return 'DEFAULT'
-
-def get_args(file, config):
- """ Get args to pass to markdown from config for a given file. """
- args = {}
- section = get_section(file, config)
- for key in ['extensions', 'safe_mode', 'output_format']:
- args[key] = config.get(section, key)
- return args
-
-def normalize(text):
- """ Normalize whitespace for a string of html using tidy. """
- return str(tidy.parseString(text.encode('utf-8'),
- drop_empty_paras=0,
- fix_backslash=0,
- fix_bad_comments=0,
- fix_uri=0,
- join_styles=0,
- lower_literals=0,
- merge_divs=0,
- output_xhtml=1,
- quote_ampersand=0,
- show_body_only=1,
- char_encoding='utf8',
- newline='LF')).decode('string-escape')
-
-class CheckSyntax(object):
- def __init__(self, description=None):
- if description:
- self.description = 'TestSyntax: "%s"' % description
-
- def __call__(self, file, config):
- """ Compare expected output to actual output and report result. """
- cfg_section = get_section(file, config)
- if config.getboolean(cfg_section, 'skip'):
- raise nose.plugins.skip.SkipTest, 'Test skipped per config.'
- input_file = file + config.get(cfg_section, 'input_ext')
- input = codecs.open(input_file, encoding="utf-8").read()
- output_file = file + config.get(cfg_section, 'output_ext')
- expected_output = codecs.open(output_file, encoding="utf-8").read()
- output = markdown.markdown(input, **get_args(file, config))
- if tidy and config.getboolean(cfg_section, 'normalize'):
- # Normalize whitespace before comparing.
- expected_output = normalize(expected_output)
- output = normalize(output)
- elif config.getboolean(cfg_section, 'normalize'):
- # Tidy is not available. Skip this test.
- raise nose.plugins.skip.SkipTest, 'Test skipped. Tidy not available in system.'
- diff = [l for l in difflib.unified_diff(expected_output.splitlines(True),
- output.splitlines(True),
- output_file,
- 'actual_output.html',
- n=3)]
- if diff:
- raise util.MarkdownSyntaxError('Output from "%s" failed to match expected '
- 'output.\n\n%s' % (input_file, ''.join(diff)))
-
-def TestSyntax():
- for dir_name, sub_dirs, files in os.walk(test_dir):
- # Get dir specific config settings.
- config = util.CustomConfigParser({'extensions': '',
- 'safe_mode': False,
- 'output_format': 'xhtml1',
- 'normalize': '0',
- 'skip': '0',
- 'input_ext': '.txt',
- 'output_ext': '.html'})
- config.read(os.path.join(dir_name, 'test.cfg'))
- # Loop through files and generate tests.
- for file in files:
- root, ext = os.path.splitext(file)
- if ext == config.get(get_section(file, config), 'input_ext'):
- path = os.path.join(dir_name, root)
- check_syntax = CheckSyntax(description=relpath(path, test_dir))
- yield check_syntax, path, config
-
-def run():
- nose.main(addplugins=[HtmlOutput(), Markdown()])
-
-# Hack to make nose run with extensions. Once extensions can be added from
-# setup.cfg, the below line can be removed.
-# See nose [Issue 271](http://code.google.com/p/python-nose/issues/detail?id=271)
-run()
diff --git a/markdown/tests/basic/amps-and-angle-encoding.html b/markdown/tests/basic/amps-and-angle-encoding.html
deleted file mode 100644
index 2c466c1..0000000
--- a/markdown/tests/basic/amps-and-angle-encoding.html
+++ /dev/null
@@ -1,9 +0,0 @@
-AT&T has an ampersand in their name.
-AT&T is another way to write it.
-This & that.
-4 < 5.
-6 > 5.
-Here's a link with an ampersand in the URL.
-Here's a link with an amersand in the link text: AT&T .
-Here's an inline link .
-Here's an inline link .
\ No newline at end of file
diff --git a/markdown/tests/basic/amps-and-angle-encoding.txt b/markdown/tests/basic/amps-and-angle-encoding.txt
deleted file mode 100644
index 0e9527f..0000000
--- a/markdown/tests/basic/amps-and-angle-encoding.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-AT&T has an ampersand in their name.
-
-AT&T is another way to write it.
-
-This & that.
-
-4 < 5.
-
-6 > 5.
-
-Here's a [link] [1] with an ampersand in the URL.
-
-Here's a link with an amersand in the link text: [AT&T] [2].
-
-Here's an inline [link](/script?foo=1&bar=2).
-
-Here's an inline [link]().
-
-
-[1]: http://example.com/?foo=1&bar=2
-[2]: http://att.com/ "AT&T"
\ No newline at end of file
diff --git a/markdown/tests/basic/angle-links-and-img.html b/markdown/tests/basic/angle-links-and-img.html
deleted file mode 100644
index 1ca3b0b..0000000
--- a/markdown/tests/basic/angle-links-and-img.html
+++ /dev/null
@@ -1,4 +0,0 @@
-link
-
-link
-
\ No newline at end of file
diff --git a/markdown/tests/basic/angle-links-and-img.txt b/markdown/tests/basic/angle-links-and-img.txt
deleted file mode 100644
index 1dbf404..0000000
--- a/markdown/tests/basic/angle-links-and-img.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-[link]( "title")
-![image]()
-[link]()
-![image]( )
diff --git a/markdown/tests/basic/auto-links.html b/markdown/tests/basic/auto-links.html
deleted file mode 100644
index 7481fe2..0000000
--- a/markdown/tests/basic/auto-links.html
+++ /dev/null
@@ -1,15 +0,0 @@
-Link: http://example.com/ .
-Https link: https://example.com
-Ftp link: ftp://example.com
-With an ampersand: http://example.com/?foo=1&bar=2
-
-
-Blockquoted: http://example.com/
-
-Auto-links should not occur here: <http://example.com/>
-or here: <http://example.com/>
-
\ No newline at end of file
diff --git a/markdown/tests/basic/auto-links.txt b/markdown/tests/basic/auto-links.txt
deleted file mode 100644
index a188b40..0000000
--- a/markdown/tests/basic/auto-links.txt
+++ /dev/null
@@ -1,17 +0,0 @@
-Link: .
-
-Https link:
-
-Ftp link:
-
-With an ampersand:
-
-* In a list?
-*
-* It should.
-
-> Blockquoted:
-
-Auto-links should not occur here: ` `
-
- or here:
diff --git a/markdown/tests/basic/backlash-escapes.html b/markdown/tests/basic/backlash-escapes.html
deleted file mode 100644
index 876775f..0000000
--- a/markdown/tests/basic/backlash-escapes.html
+++ /dev/null
@@ -1,67 +0,0 @@
-These should all get escaped:
-Backslash: \
-Backtick: `
-Asterisk: *
-Underscore: _
-Left brace: {
-Right brace: }
-Left bracket: [
-Right bracket: ]
-Left paren: (
-Right paren: )
-Greater-than: >
-Hash: #
-Period: .
-Bang: !
-Plus: +
-Minus: -
-These should not, because they occur within a code block:
-Backslash: \\
-
-Backtick: \`
-
-Asterisk: \*
-
-Underscore: \_
-
-Left brace: \{
-
-Right brace: \}
-
-Left bracket: \[
-
-Right bracket: \]
-
-Left paren: \(
-
-Right paren: \)
-
-Greater-than: \>
-
-Hash: \#
-
-Period: \.
-
-Bang: \!
-
-Plus: \+
-
-Minus: \-
-
-Nor should these, which occur in code spans:
-Backslash: \\
-Backtick: \`
-Asterisk: \*
-Underscore: \_
-Left brace: \{
-Right brace: \}
-Left bracket: \[
-Right bracket: \]
-Left paren: \(
-Right paren: \)
-Greater-than: \>
-Hash: \#
-Period: \.
-Bang: \!
-Plus: \+
-Minus: \-
\ No newline at end of file
diff --git a/markdown/tests/basic/backlash-escapes.txt b/markdown/tests/basic/backlash-escapes.txt
deleted file mode 100644
index 16447a0..0000000
--- a/markdown/tests/basic/backlash-escapes.txt
+++ /dev/null
@@ -1,104 +0,0 @@
-These should all get escaped:
-
-Backslash: \\
-
-Backtick: \`
-
-Asterisk: \*
-
-Underscore: \_
-
-Left brace: \{
-
-Right brace: \}
-
-Left bracket: \[
-
-Right bracket: \]
-
-Left paren: \(
-
-Right paren: \)
-
-Greater-than: \>
-
-Hash: \#
-
-Period: \.
-
-Bang: \!
-
-Plus: \+
-
-Minus: \-
-
-
-
-These should not, because they occur within a code block:
-
- Backslash: \\
-
- Backtick: \`
-
- Asterisk: \*
-
- Underscore: \_
-
- Left brace: \{
-
- Right brace: \}
-
- Left bracket: \[
-
- Right bracket: \]
-
- Left paren: \(
-
- Right paren: \)
-
- Greater-than: \>
-
- Hash: \#
-
- Period: \.
-
- Bang: \!
-
- Plus: \+
-
- Minus: \-
-
-
-Nor should these, which occur in code spans:
-
-Backslash: `\\`
-
-Backtick: `` \` ``
-
-Asterisk: `\*`
-
-Underscore: `\_`
-
-Left brace: `\{`
-
-Right brace: `\}`
-
-Left bracket: `\[`
-
-Right bracket: `\]`
-
-Left paren: `\(`
-
-Right paren: `\)`
-
-Greater-than: `\>`
-
-Hash: `\#`
-
-Period: `\.`
-
-Bang: `\!`
-
-Plus: `\+`
-
-Minus: `\-`
diff --git a/markdown/tests/basic/benchmark.dat b/markdown/tests/basic/benchmark.dat
deleted file mode 100644
index 3d549dd..0000000
--- a/markdown/tests/basic/benchmark.dat
+++ /dev/null
@@ -1,20 +0,0 @@
-construction:0.000000:0.000000
-amps-and-angle-encoding:0.070000:131072.000000
-auto-links:0.080000:397312.000000
-backlash-escapes:0.270000:884736.000000
-blockquotes-with-dode-blocks:0.020000:0.000000
-hard-wrapped:0.020000:0.000000
-horizontal-rules:0.180000:135168.000000
-inline-html-advanced:0.070000:0.000000
-inline-html-comments:0.080000:0.000000
-inline-html-simple:0.210000:0.000000
-links-inline:0.140000:0.000000
-links-reference:0.170000:0.000000
-literal-quotes:0.090000:0.000000
-markdown-documentation-basics:0.690000:1806336.000000
-markdown-syntax:3.310000:6696960.000000
-nested-blockquotes:0.200000:0.000000
-ordered-and-unordered-list:0.530000:0.000000
-strong-and-em-together:0.200000:0.000000
-tabs:0.200000:0.000000
-tidyness:0.200000:0.000000
diff --git a/markdown/tests/basic/blockquotes-with-code-blocks.html b/markdown/tests/basic/blockquotes-with-code-blocks.html
deleted file mode 100644
index 5fc98b1..0000000
--- a/markdown/tests/basic/blockquotes-with-code-blocks.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-Example:
-sub status {
- print "working";
-}
-
-Or:
-sub status {
- return "working";
-}
-
-
\ No newline at end of file
diff --git a/markdown/tests/basic/blockquotes-with-code-blocks.txt b/markdown/tests/basic/blockquotes-with-code-blocks.txt
deleted file mode 100644
index c31d171..0000000
--- a/markdown/tests/basic/blockquotes-with-code-blocks.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-> Example:
->
-> sub status {
-> print "working";
-> }
->
-> Or:
->
-> sub status {
-> return "working";
-> }
diff --git a/markdown/tests/basic/codeblock-in-list.html b/markdown/tests/basic/codeblock-in-list.html
deleted file mode 100644
index 49edd56..0000000
--- a/markdown/tests/basic/codeblock-in-list.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
\ No newline at end of file
diff --git a/markdown/tests/basic/codeblock-in-list.txt b/markdown/tests/basic/codeblock-in-list.txt
deleted file mode 100644
index 87d4e3b..0000000
--- a/markdown/tests/basic/codeblock-in-list.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-* A list item with a code block
-
- Some *code*
-
-* Another list item
-
- More code
-
- And more code
-
diff --git a/markdown/tests/basic/hard-wrapped.html b/markdown/tests/basic/hard-wrapped.html
deleted file mode 100644
index e28e900..0000000
--- a/markdown/tests/basic/hard-wrapped.html
+++ /dev/null
@@ -1,7 +0,0 @@
-In Markdown 1.0.0 and earlier. Version
-8. This line turns into a list item.
-Because a hard-wrapped line in the
-middle of a paragraph looked like a
-list item.
-Here's one with a bullet.
-* criminey.
\ No newline at end of file
diff --git a/markdown/tests/basic/hard-wrapped.txt b/markdown/tests/basic/hard-wrapped.txt
deleted file mode 100644
index f8a5b27..0000000
--- a/markdown/tests/basic/hard-wrapped.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-In Markdown 1.0.0 and earlier. Version
-8. This line turns into a list item.
-Because a hard-wrapped line in the
-middle of a paragraph looked like a
-list item.
-
-Here's one with a bullet.
-* criminey.
diff --git a/markdown/tests/basic/horizontal-rules.html b/markdown/tests/basic/horizontal-rules.html
deleted file mode 100644
index 478e8c5..0000000
--- a/markdown/tests/basic/horizontal-rules.html
+++ /dev/null
@@ -1,39 +0,0 @@
-Dashes:
-
-
-
-
----
-
-
-
-
-
-- - -
-
-Asterisks:
-
-
-
-
-***
-
-
-
-
-
-* * *
-
-Underscores:
-
-
-
-
-___
-
-
-
-
-
-_ _ _
-
\ No newline at end of file
diff --git a/markdown/tests/basic/horizontal-rules.txt b/markdown/tests/basic/horizontal-rules.txt
deleted file mode 100644
index 1594bda..0000000
--- a/markdown/tests/basic/horizontal-rules.txt
+++ /dev/null
@@ -1,67 +0,0 @@
-Dashes:
-
----
-
- ---
-
- ---
-
- ---
-
- ---
-
-- - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
-
-Asterisks:
-
-***
-
- ***
-
- ***
-
- ***
-
- ***
-
-* * *
-
- * * *
-
- * * *
-
- * * *
-
- * * *
-
-
-Underscores:
-
-___
-
- ___
-
- ___
-
- ___
-
- ___
-
-_ _ _
-
- _ _ _
-
- _ _ _
-
- _ _ _
-
- _ _ _
diff --git a/markdown/tests/basic/inline-html-advanced.html b/markdown/tests/basic/inline-html-advanced.html
deleted file mode 100644
index af1dec1..0000000
--- a/markdown/tests/basic/inline-html-advanced.html
+++ /dev/null
@@ -1,12 +0,0 @@
-Simple block on one line:
-foo
-
-And nested without indentation:
-
\ No newline at end of file
diff --git a/markdown/tests/basic/inline-html-advanced.txt b/markdown/tests/basic/inline-html-advanced.txt
deleted file mode 100644
index 9d71ddc..0000000
--- a/markdown/tests/basic/inline-html-advanced.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-Simple block on one line:
-
-foo
-
-And nested without indentation:
-
-
diff --git a/markdown/tests/basic/inline-html-comments.html b/markdown/tests/basic/inline-html-comments.html
deleted file mode 100644
index 0d4cad9..0000000
--- a/markdown/tests/basic/inline-html-comments.html
+++ /dev/null
@@ -1,11 +0,0 @@
-Paragraph one.
-
-
-
-
-Paragraph two.
-
-
-The end.
\ No newline at end of file
diff --git a/markdown/tests/basic/inline-html-comments.txt b/markdown/tests/basic/inline-html-comments.txt
deleted file mode 100644
index 41d830d..0000000
--- a/markdown/tests/basic/inline-html-comments.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-Paragraph one.
-
-
-
-
-
-Paragraph two.
-
-
-
-The end.
diff --git a/markdown/tests/basic/inline-html-simple.html b/markdown/tests/basic/inline-html-simple.html
deleted file mode 100644
index cb10451..0000000
--- a/markdown/tests/basic/inline-html-simple.html
+++ /dev/null
@@ -1,58 +0,0 @@
-Here's a simple block:
-
- foo
-
-
-This should be a code block, though:
-<div>
- foo
-</div>
-
-As should this:
-<div>foo</div>
-
-Now, nested:
-
-
-This should just be an HTML comment:
-
-
-Multiline:
-
-
-Code block:
-<!-- Comment -->
-
-Just plain comment, with trailing spaces on the line:
-
-
-Code:
-<hr />
-
-Hr's:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/markdown/tests/basic/inline-html-simple.txt b/markdown/tests/basic/inline-html-simple.txt
deleted file mode 100644
index 14aa2dc..0000000
--- a/markdown/tests/basic/inline-html-simple.txt
+++ /dev/null
@@ -1,69 +0,0 @@
-Here's a simple block:
-
-
- foo
-
-
-This should be a code block, though:
-
-
- foo
-
-
-As should this:
-
- foo
-
-Now, nested:
-
-
-
-This should just be an HTML comment:
-
-
-
-Multiline:
-
-
-
-Code block:
-
-
-
-Just plain comment, with trailing spaces on the line:
-
-
-
-Code:
-
-
-
-Hr's:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/markdown/tests/basic/links-inline.html b/markdown/tests/basic/links-inline.html
deleted file mode 100644
index 707937a..0000000
--- a/markdown/tests/basic/links-inline.html
+++ /dev/null
@@ -1,5 +0,0 @@
-Just a URL .
-URL and title .
-URL and title .
-URL and title .
-Empty .
\ No newline at end of file
diff --git a/markdown/tests/basic/links-inline.txt b/markdown/tests/basic/links-inline.txt
deleted file mode 100644
index 4d0c1c2..0000000
--- a/markdown/tests/basic/links-inline.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-Just a [URL](/url/).
-
-[URL and title](/url/ "title").
-
-[URL and title](/url/ "title preceded by two spaces").
-
-[URL and title](/url/ "title preceded by a tab").
-
-[Empty]().
diff --git a/markdown/tests/basic/links-reference.html b/markdown/tests/basic/links-reference.html
deleted file mode 100644
index 165c71a..0000000
--- a/markdown/tests/basic/links-reference.html
+++ /dev/null
@@ -1,10 +0,0 @@
-Foo bar .
-Foo bar .
-Foo bar .
-With embedded [brackets] .
-Indented once .
-Indented twice .
-Indented thrice .
-Indented [four][] times.
-[four]: /url
-
\ No newline at end of file
diff --git a/markdown/tests/basic/links-reference.txt b/markdown/tests/basic/links-reference.txt
deleted file mode 100644
index b2fa734..0000000
--- a/markdown/tests/basic/links-reference.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-Foo [bar] [1].
-
-Foo [bar][1].
-
-Foo [bar]
-[1].
-
-[1]: /url/ "Title"
-
-
-With [embedded [brackets]] [b].
-
-
-Indented [once][].
-
-Indented [twice][].
-
-Indented [thrice][].
-
-Indented [four][] times.
-
- [once]: /url
-
- [twice]: /url
-
- [thrice]: /url
-
- [four]: /url
-
-
-[b]: /url/
diff --git a/markdown/tests/basic/literal-quotes.html b/markdown/tests/basic/literal-quotes.html
deleted file mode 100644
index 0342589..0000000
--- a/markdown/tests/basic/literal-quotes.html
+++ /dev/null
@@ -1,2 +0,0 @@
-Foo bar .
-Foo bar .
\ No newline at end of file
diff --git a/markdown/tests/basic/literal-quotes.txt b/markdown/tests/basic/literal-quotes.txt
deleted file mode 100644
index 29d0e42..0000000
--- a/markdown/tests/basic/literal-quotes.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-Foo [bar][].
-
-Foo [bar](/url/ "Title with "quotes" inside").
-
-
- [bar]: /url/ "Title with "quotes" inside"
-
diff --git a/markdown/tests/basic/markdown-documentation-basics.html b/markdown/tests/basic/markdown-documentation-basics.html
deleted file mode 100644
index 3bcaea9..0000000
--- a/markdown/tests/basic/markdown-documentation-basics.html
+++ /dev/null
@@ -1,243 +0,0 @@
-Markdown: Basics
-
-
-Getting the Gist of Markdown's Formatting Syntax
-This page offers a brief overview of what it's like to use Markdown.
-The syntax page provides complete, detailed documentation for
-every feature, but Markdown should be very easy to pick up simply by
-looking at a few examples of it in action. The examples on this page
-are written in a before/after style, showing example syntax and the
-HTML output produced by Markdown.
-It's also helpful to simply try Markdown out; the Dingus is a
-web application that allows you type your own Markdown-formatted text
-and translate it to XHTML.
-Note: This document is itself written using Markdown; you
-can see the source for it by adding '.text' to the URL .
-Paragraphs, Headers, Blockquotes
-A paragraph is simply one or more consecutive lines of text, separated
-by one or more blank lines. (A blank line is any line that looks like a
-blank line -- a line containing nothing spaces or tabs is considered
-blank.) Normal paragraphs should not be intended with spaces or tabs.
-Markdown offers two styles of headers: Setext and atx .
-Setext-style headers for <h1>
and <h2>
are created by
-"underlining" with equal signs (=
) and hyphens (-
), respectively.
-To create an atx-style header, you put 1-6 hash marks (#
) at the
-beginning of the line -- the number of hashes equals the resulting
-HTML header level.
-Blockquotes are indicated using email-style '>
' angle brackets.
-Markdown:
-A First Level Header
-====================
-
-A Second Level Header
----------------------
-
-Now is the time for all good men to come to
-the aid of their country. This is just a
-regular paragraph.
-
-The quick brown fox jumped over the lazy
-dog's back.
-
-### Header 3
-
-> This is a blockquote.
->
-> This is the second paragraph in the blockquote.
->
-> ## This is an H2 in a blockquote
-
-Output:
-<h1>A First Level Header</h1>
-
-<h2>A Second Level Header</h2>
-
-<p>Now is the time for all good men to come to
-the aid of their country. This is just a
-regular paragraph.</p>
-
-<p>The quick brown fox jumped over the lazy
-dog's back.</p>
-
-<h3>Header 3</h3>
-
-<blockquote>
- <p>This is a blockquote.</p>
-
- <p>This is the second paragraph in the blockquote.</p>
-
- <h2>This is an H2 in a blockquote</h2>
-</blockquote>
-
-Phrase Emphasis
-Markdown uses asterisks and underscores to indicate spans of emphasis.
-Markdown:
-Some of these words *are emphasized*.
-Some of these words _are emphasized also_.
-
-Use two asterisks for **strong emphasis**.
-Or, if you prefer, __use two underscores instead__.
-
-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:
-* Candy.
-* Gum.
-* Booze.
-
-this:
-+ Candy.
-+ Gum.
-+ Booze.
-
-and this:
-- Candy.
-- Gum.
-- Booze.
-
-all produce the same output:
-<ul>
-<li>Candy.</li>
-<li>Gum.</li>
-<li>Booze.</li>
-</ul>
-
-Ordered (numbered) lists use regular numbers, followed by periods, as
-list markers:
-1. Red
-2. Green
-3. Blue
-
-Output:
-<ol>
-<li>Red</li>
-<li>Green</li>
-<li>Blue</li>
-</ol>
-
-If you put blank lines between items, you'll get <p>
tags for the
-list item text. You can create multi-paragraph list items by indenting
-the paragraphs by 4 spaces or 1 tab:
-* A list item.
-
- With multiple paragraphs.
-
-* Another item in the list.
-
-Output:
-<ul>
-<li><p>A list item.</p>
-<p>With multiple paragraphs.</p></li>
-<li><p>Another item in the list.</p></li>
-</ul>
-
-Links
-Markdown supports two styles for creating links: inline and
-reference . With both styles, you use square brackets to delimit the
-text you want to turn into a link.
-Inline-style links use parentheses immediately after the link text.
-For example:
-This is an [example link](http://example.com/).
-
-Output:
-<p>This is an <a href="http://example.com/">
-example link</a>.</p>
-
-Optionally, you may include a title attribute in the parentheses:
-This is an [example link](http://example.com/ "With a Title").
-
-Output:
-<p>This is an <a href="http://example.com/" title="With a Title">
-example link</a>.</p>
-
-Reference-style links allow you to refer to your links by names, which
-you define elsewhere in your document:
-I get 10 times more traffic from [Google][1] than from
-[Yahoo][2] or [MSN][3].
-
-[1]: http://google.com/ "Google"
-[2]: http://search.yahoo.com/ "Yahoo Search"
-[3]: http://search.msn.com/ "MSN Search"
-
-Output:
-<p>I get 10 times more traffic from <a href="http://google.com/"
-title="Google">Google</a> than from <a href="http://search.yahoo.com/"
-title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/"
-title="MSN Search">MSN</a>.</p>
-
-The title attribute is optional. Link names may contain letters,
-numbers and spaces, but are not case sensitive:
-I start my morning with a cup of coffee and
-[The New York Times][NY Times].
-
-[ny times]: http://www.nytimes.com/
-
-Output:
-<p>I start my morning with a cup of coffee and
-<a href="http://www.nytimes.com/">The New York Times</a>.</p>
-
-Images
-Image syntax is very much like link syntax.
-Inline (titles are optional):
-![alt text](/path/to/img.jpg "Title")
-
-Reference-style:
-![alt text][id]
-
-[id]: /path/to/img.jpg "Title"
-
-Both of the above examples produce the same output:
-<img src="/path/to/img.jpg" alt="alt text" title="Title" />
-
-Code
-In a regular paragraph, you can create code span by wrapping text in
-backtick quotes. Any ampersands (&
) and angle brackets (<
or
->
) will automatically be translated into HTML entities. This makes
-it easy to use Markdown to write about HTML example code:
-I strongly recommend against using any `<blink>` tags.
-
-I wish SmartyPants used named entities like `—`
-instead of decimal-encoded entites like `—`.
-
-Output:
-<p>I strongly recommend against using any
-<code><blink></code> tags.</p>
-
-<p>I wish SmartyPants used named entities like
-<code>&mdash;</code> instead of decimal-encoded
-entites like <code>&#8212;</code>.</p>
-
-To specify an entire block of pre-formatted code, indent every line of
-the block by 4 spaces or 1 tab. Just like with code spans, &
, <
,
-and >
characters will be escaped automatically.
-Markdown:
-If you want your page to validate under XHTML 1.0 Strict,
-you've got to put paragraph tags in your blockquotes:
-
- <blockquote>
- <p>For example.</p>
- </blockquote>
-
-Output:
-<p>If you want your page to validate under XHTML 1.0 Strict,
-you've got to put paragraph tags in your blockquotes:</p>
-
-<pre><code><blockquote>
- <p>For example.</p>
-</blockquote>
-</code></pre>
-
\ No newline at end of file
diff --git a/markdown/tests/basic/markdown-documentation-basics.txt b/markdown/tests/basic/markdown-documentation-basics.txt
deleted file mode 100644
index 486055c..0000000
--- a/markdown/tests/basic/markdown-documentation-basics.txt
+++ /dev/null
@@ -1,306 +0,0 @@
-Markdown: Basics
-================
-
-
-
-
-Getting the Gist of Markdown's Formatting Syntax
-------------------------------------------------
-
-This page offers a brief overview of what it's like to use Markdown.
-The [syntax page] [s] provides complete, detailed documentation for
-every feature, but Markdown should be very easy to pick up simply by
-looking at a few examples of it in action. The examples on this page
-are written in a before/after style, showing example syntax and the
-HTML output produced by Markdown.
-
-It's also helpful to simply try Markdown out; the [Dingus] [d] is a
-web application that allows you type your own Markdown-formatted text
-and translate it to XHTML.
-
-**Note:** This document is itself written using Markdown; you
-can [see the source for it by adding '.text' to the URL] [src].
-
- [s]: /projects/markdown/syntax "Markdown Syntax"
- [d]: /projects/markdown/dingus "Markdown Dingus"
- [src]: /projects/markdown/basics.text
-
-
-## Paragraphs, Headers, Blockquotes ##
-
-A paragraph is simply one or more consecutive lines of text, separated
-by one or more blank lines. (A blank line is any line that looks like a
-blank line -- a line containing nothing spaces or tabs is considered
-blank.) Normal paragraphs should not be intended with spaces or tabs.
-
-Markdown offers two styles of headers: *Setext* and *atx*.
-Setext-style headers for `` and `` are created by
-"underlining" with equal signs (`=`) and hyphens (`-`), respectively.
-To create an atx-style header, you put 1-6 hash marks (`#`) at the
-beginning of the line -- the number of hashes equals the resulting
-HTML header level.
-
-Blockquotes are indicated using email-style '`>`' angle brackets.
-
-Markdown:
-
- A First Level Header
- ====================
-
- A Second Level Header
- ---------------------
-
- Now is the time for all good men to come to
- the aid of their country. This is just a
- regular paragraph.
-
- The quick brown fox jumped over the lazy
- dog's back.
-
- ### Header 3
-
- > This is a blockquote.
- >
- > This is the second paragraph in the blockquote.
- >
- > ## This is an H2 in a blockquote
-
-
-Output:
-
- A First Level Header
-
- A Second Level Header
-
- Now is the time for all good men to come to
- the aid of their country. This is just a
- regular paragraph.
-
- The quick brown fox jumped over the lazy
- dog's back.
-
- Header 3
-
-
- This is a blockquote.
-
- This is the second paragraph in the blockquote.
-
- This is an H2 in a blockquote
-
-
-
-
-### Phrase Emphasis ###
-
-Markdown uses asterisks and underscores to indicate spans of emphasis.
-
-Markdown:
-
- Some of these words *are emphasized*.
- Some of these words _are emphasized also_.
-
- Use two asterisks for **strong emphasis**.
- Or, if you prefer, __use two underscores instead__.
-
-Output:
-
- Some of these words are emphasized .
- Some of these words are emphasized also .
-
- Use two asterisks for strong emphasis .
- Or, if you prefer, use two underscores instead .
-
-
-
-## Lists ##
-
-Unordered (bulleted) lists use asterisks, pluses, and hyphens (`*`,
-`+`, and `-`) as list markers. These three markers are
-interchangable; this:
-
- * Candy.
- * Gum.
- * Booze.
-
-this:
-
- + Candy.
- + Gum.
- + Booze.
-
-and this:
-
- - Candy.
- - Gum.
- - Booze.
-
-all produce the same output:
-
-
- Candy.
- Gum.
- Booze.
-
-
-Ordered (numbered) lists use regular numbers, followed by periods, as
-list markers:
-
- 1. Red
- 2. Green
- 3. Blue
-
-Output:
-
-
- Red
- Green
- Blue
-
-
-If you put blank lines between items, you'll get `` tags for the
-list item text. You can create multi-paragraph list items by indenting
-the paragraphs by 4 spaces or 1 tab:
-
- * A list item.
-
- With multiple paragraphs.
-
- * Another item in the list.
-
-Output:
-
-
-
-
-
-### Links ###
-
-Markdown supports two styles for creating links: *inline* and
-*reference*. With both styles, you use square brackets to delimit the
-text you want to turn into a link.
-
-Inline-style links use parentheses immediately after the link text.
-For example:
-
- This is an [example link](http://example.com/).
-
-Output:
-
- This is an
- example link .
-
-Optionally, you may include a title attribute in the parentheses:
-
- This is an [example link](http://example.com/ "With a Title").
-
-Output:
-
- This is an
- example link .
-
-Reference-style links allow you to refer to your links by names, which
-you define elsewhere in your document:
-
- I get 10 times more traffic from [Google][1] than from
- [Yahoo][2] or [MSN][3].
-
- [1]: http://google.com/ "Google"
- [2]: http://search.yahoo.com/ "Yahoo Search"
- [3]: http://search.msn.com/ "MSN Search"
-
-Output:
-
- I get 10 times more traffic from Google than from Yahoo or MSN .
-
-The title attribute is optional. Link names may contain letters,
-numbers and spaces, but are *not* case sensitive:
-
- I start my morning with a cup of coffee and
- [The New York Times][NY Times].
-
- [ny times]: http://www.nytimes.com/
-
-Output:
-
- I start my morning with a cup of coffee and
- The New York Times .
-
-
-### Images ###
-
-Image syntax is very much like link syntax.
-
-Inline (titles are optional):
-
- ![alt text](/path/to/img.jpg "Title")
-
-Reference-style:
-
- ![alt text][id]
-
- [id]: /path/to/img.jpg "Title"
-
-Both of the above examples produce the same output:
-
-
-
-
-
-### Code ###
-
-In a regular paragraph, you can create code span by wrapping text in
-backtick quotes. Any ampersands (`&`) and angle brackets (`<` or
-`>`) will automatically be translated into HTML entities. This makes
-it easy to use Markdown to write about HTML example code:
-
- I strongly recommend against using any `` tags.
-
- I wish SmartyPants used named entities like `—`
- instead of decimal-encoded entites like `—`.
-
-Output:
-
- I strongly recommend against using any
- <blink>
tags.
-
- I wish SmartyPants used named entities like
- —
instead of decimal-encoded
- entites like —
.
-
-
-To specify an entire block of pre-formatted code, indent every line of
-the block by 4 spaces or 1 tab. Just like with code spans, `&`, `<`,
-and `>` characters will be escaped automatically.
-
-Markdown:
-
- If you want your page to validate under XHTML 1.0 Strict,
- you've got to put paragraph tags in your blockquotes:
-
-
- For example.
-
-
-Output:
-
- If you want your page to validate under XHTML 1.0 Strict,
- you've got to put paragraph tags in your blockquotes:
-
- <blockquote>
- <p>For example.</p>
- </blockquote>
-
diff --git a/markdown/tests/basic/markdown-syntax.html b/markdown/tests/basic/markdown-syntax.html
deleted file mode 100644
index 038c9d1..0000000
--- a/markdown/tests/basic/markdown-syntax.html
+++ /dev/null
@@ -1,728 +0,0 @@
-Markdown: Syntax
-
-
-
-Note: This document is itself written using Markdown; you
-can see the source for it by adding '.text' to the URL .
-
-Overview
-
-Philosophy
-
-Markdown is intended to be as easy-to-read and easy-to-write as is feasible.
-Readability, however, is emphasized above all else. A Markdown-formatted
-document should be publishable as-is, as plain text, without looking
-like it's been marked up with tags or formatting instructions. While
-Markdown's syntax has been influenced by several existing text-to-HTML
-filters -- including Setext , atx , Textile , reStructuredText ,
-Grutatext , and EtText -- the single biggest source of
-inspiration for Markdown's syntax is the format of plain text email.
-To this end, Markdown's syntax is comprised entirely of punctuation
-characters, which punctuation characters have been carefully chosen so
-as to look like what they mean. E.g., asterisks around a word actually
-look like *emphasis*. Markdown lists look like, well, lists. Even
-blockquotes look like quoted passages of text, assuming you've ever
-used email.
-Inline HTML
-
-Markdown's syntax is intended for one purpose: to be used as a
-format for writing for the web.
-Markdown is not a replacement for HTML, or even close to it. Its
-syntax is very small, corresponding only to a very small subset of
-HTML tags. The idea is not to create a syntax that makes it easier
-to insert HTML tags. In my opinion, HTML tags are already easy to
-insert. The idea for Markdown is to make it easy to read, write, and
-edit prose. HTML is a publishing format; Markdown is a writing
-format. Thus, Markdown's formatting syntax only addresses issues that
-can be conveyed in plain text.
-For any markup that is not covered by Markdown's syntax, you simply
-use HTML itself. There's no need to preface it or delimit it to
-indicate that you're switching from Markdown to HTML; you just use
-the tags.
-The only restrictions are that block-level HTML elements -- e.g. <div>
,
-<table>
, <pre>
, <p>
, etc. -- must be separated from surrounding
-content by blank lines, and the start and end tags of the block should
-not be indented with tabs or spaces. Markdown is smart enough not
-to add extra (unwanted) <p>
tags around HTML block-level tags.
-For example, to add an HTML table to a Markdown article:
-This is a regular paragraph.
-
-<table>
- <tr>
- <td>Foo</td>
- </tr>
-</table>
-
-This is another regular paragraph.
-
-Note that Markdown formatting syntax is not processed within block-level
-HTML tags. E.g., you can't use Markdown-style *emphasis*
inside an
-HTML block.
-Span-level HTML tags -- e.g. <span>
, <cite>
, or <del>
-- can be
-used anywhere in a Markdown paragraph, list item, or header. If you
-want, you can even use HTML tags instead of Markdown formatting; e.g. if
-you'd prefer to use HTML <a>
or <img>
tags instead of Markdown's
-link or image syntax, go right ahead.
-Unlike block-level HTML tags, Markdown syntax is processed within
-span-level tags.
-Automatic Escaping for Special Characters
-
-In HTML, there are two characters that demand special treatment: <
-and &
. Left angle brackets are used to start tags; ampersands are
-used to denote HTML entities. If you want to use them as literal
-characters, you must escape them as entities, e.g. <
, and
-&
.
-Ampersands in particular are bedeviling for web writers. If you want to
-write about 'AT&T', you need to write 'AT&T
'. You even need to
-escape ampersands within URLs. Thus, if you want to link to:
-http://images.google.com/images?num=30&q=larry+bird
-
-you need to encode the URL as:
-http://images.google.com/images?num=30&q=larry+bird
-
-in your anchor tag href
attribute. Needless to say, this is easy to
-forget, and is probably the single most common source of HTML validation
-errors in otherwise well-marked-up web sites.
-Markdown allows you to use these characters naturally, taking care of
-all the necessary escaping for you. If you use an ampersand as part of
-an HTML entity, it remains unchanged; otherwise it will be translated
-into &
.
-So, if you want to include a copyright symbol in your article, you can write:
-©
-
-and Markdown will leave it alone. But if you write:
-AT&T
-
-Markdown will translate it to:
-AT&T
-
-Similarly, because Markdown supports inline HTML , if you use
-angle brackets as delimiters for HTML tags, Markdown will treat them as
-such. But if you write:
-4 < 5
-
-Markdown will translate it to:
-4 < 5
-
-However, inside Markdown code spans and blocks, angle brackets and
-ampersands are always encoded automatically. This makes it easy to use
-Markdown to write about HTML code. (As opposed to raw HTML, which is a
-terrible format for writing about HTML syntax, because every single <
-and &
in your example code needs to be escaped.)
-
-Block Elements
-
-Paragraphs and Line Breaks
-
-A paragraph is simply one or more consecutive lines of text, separated
-by one or more blank lines. (A blank line is any line that looks like a
-blank line -- a line containing nothing but spaces or tabs is considered
-blank.) Normal paragraphs should not be intended with spaces or tabs.
-The implication of the "one or more consecutive lines of text" rule is
-that Markdown supports "hard-wrapped" text paragraphs. This differs
-significantly from most other text-to-HTML formatters (including Movable
-Type's "Convert Line Breaks" option) which translate every line break
-character in a paragraph into a <br />
tag.
-When you do want to insert a <br />
break tag using Markdown, you
-end a line with two or more spaces, then type return.
-Yes, this takes a tad more effort to create a <br />
, but a simplistic
-"every line break is a <br />
" rule wouldn't work for Markdown.
-Markdown's email-style blockquoting and multi-paragraph list items
-work best -- and look better -- when you format them with hard breaks.
-
-
-Markdown supports two styles of headers, Setext and atx .
-Setext-style headers are "underlined" using equal signs (for first-level
-headers) and dashes (for second-level headers). For example:
-This is an H1
-=============
-
-This is an H2
--------------
-
-Any number of underlining =
's or -
's will work.
-Atx-style headers use 1-6 hash characters at the start of the line,
-corresponding to header levels 1-6. For example:
-# This is an H1
-
-## This is an H2
-
-###### This is an H6
-
-Optionally, you may "close" atx-style headers. This is purely
-cosmetic -- you can use this if you think it looks better. The
-closing hashes don't even need to match the number of hashes
-used to open the header. (The number of opening hashes
-determines the header level.) :
-# This is an H1 #
-
-## This is an H2 ##
-
-### This is an H3 ######
-
-Blockquotes
-
-Markdown uses email-style >
characters for blockquoting. If you're
-familiar with quoting passages of text in an email message, then you
-know how to create a blockquote in Markdown. It looks best if you hard
-wrap the text and put a >
before every line:
-> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
-> consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
-> Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
->
-> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
-> id sem consectetuer libero luctus adipiscing.
-
-Markdown allows you to be lazy and only put the >
before the first
-line of a hard-wrapped paragraph:
-> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
-consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
-Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
-
-> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
-id sem consectetuer libero luctus adipiscing.
-
-Blockquotes can be nested (i.e. a blockquote-in-a-blockquote) by
-adding additional levels of >
:
-> This is the first level of quoting.
->
-> > This is nested blockquote.
->
-> Back to the first level.
-
-Blockquotes can contain other Markdown elements, including headers, lists,
-and code blocks:
-> ## This is a header.
->
-> 1. This is the first list item.
-> 2. This is the second list item.
->
-> Here's some example code:
->
-> return shell_exec("echo $input | $markdown_script");
-
-Any decent text editor should make email-style quoting easy. For
-example, with BBEdit, you can make a selection and choose Increase
-Quote Level from the Text menu.
-Lists
-
-Markdown supports ordered (numbered) and unordered (bulleted) lists.
-Unordered lists use asterisks, pluses, and hyphens -- interchangably
--- as list markers:
-* Red
-* Green
-* Blue
-
-is equivalent to:
-+ Red
-+ Green
-+ Blue
-
-and:
-- Red
-- Green
-- Blue
-
-Ordered lists use numbers followed by periods:
-1. Bird
-2. McHale
-3. Parish
-
-It's important to note that the actual numbers you use to mark the
-list have no effect on the HTML output Markdown produces. The HTML
-Markdown produces from the above list is:
-<ol>
-<li>Bird</li>
-<li>McHale</li>
-<li>Parish</li>
-</ol>
-
-If you instead wrote the list in Markdown like this:
-1. Bird
-1. McHale
-1. Parish
-
-or even:
-3. Bird
-1. McHale
-8. Parish
-
-you'd get the exact same HTML output. The point is, if you want to,
-you can use ordinal numbers in your ordered Markdown lists, so that
-the numbers in your source match the numbers in your published HTML.
-But if you want to be lazy, you don't have to.
-If you do use lazy list numbering, however, you should still start the
-list with the number 1. At some point in the future, Markdown may support
-starting ordered lists at an arbitrary number.
-List markers typically start at the left margin, but may be indented by
-up to three spaces. List markers must be followed by one or more spaces
-or a tab.
-To make lists look nice, you can wrap items with hanging indents:
-* Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
- Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
- viverra nec, fringilla in, laoreet vitae, risus.
-* Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
- Suspendisse id sem consectetuer libero luctus adipiscing.
-
-But if you want to be lazy, you don't have to:
-* Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
-Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
-viverra nec, fringilla in, laoreet vitae, risus.
-* Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
-Suspendisse id sem consectetuer libero luctus adipiscing.
-
-If list items are separated by blank lines, Markdown will wrap the
-items in <p>
tags in the HTML output. For example, this input:
-* Bird
-* Magic
-
-will turn into:
-<ul>
-<li>Bird</li>
-<li>Magic</li>
-</ul>
-
-But this:
-* Bird
-
-* Magic
-
-will turn into:
-<ul>
-<li><p>Bird</p></li>
-<li><p>Magic</p></li>
-</ul>
-
-List items may consist of multiple paragraphs. Each subsequent
-paragraph in a list item must be intended by either 4 spaces
-or one tab:
-1. This is a list item with two paragraphs. Lorem ipsum dolor
- sit amet, consectetuer adipiscing elit. Aliquam hendrerit
- mi posuere lectus.
-
- Vestibulum enim wisi, viverra nec, fringilla in, laoreet
- vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
- sit amet velit.
-
-2. Suspendisse id sem consectetuer libero luctus adipiscing.
-
-It looks nice if you indent every line of the subsequent
-paragraphs, but here again, Markdown will allow you to be
-lazy:
-* This is a list item with two paragraphs.
-
- This is the second paragraph in the list item. You're
-only required to indent the first line. Lorem ipsum dolor
-sit amet, consectetuer adipiscing elit.
-
-* Another item in the same list.
-
-To put a blockquote within a list item, the blockquote's >
-delimiters need to be indented:
-* A list item with a blockquote:
-
- > This is a blockquote
- > inside a list item.
-
-To put a code block within a list item, the code block needs
-to be indented twice -- 8 spaces or two tabs:
-* A list item with a code block:
-
- <code goes here>
-
-It's worth noting that it's possible to trigger an ordered list by
-accident, by writing something like this:
-1986. What a great season.
-
-In other words, a number-period-space sequence at the beginning of a
-line. To avoid this, you can backslash-escape the period:
-1986\. What a great season.
-
-Code Blocks
-
-Pre-formatted code blocks are used for writing about programming or
-markup source code. Rather than forming normal paragraphs, the lines
-of a code block are interpreted literally. Markdown wraps a code block
-in both <pre>
and <code>
tags.
-To produce a code block in Markdown, simply indent every line of the
-block by at least 4 spaces or 1 tab. For example, given this input:
-This is a normal paragraph:
-
- This is a code block.
-
-Markdown will generate:
-<p>This is a normal paragraph:</p>
-
-<pre><code>This is a code block.
-</code></pre>
-
-One level of indentation -- 4 spaces or 1 tab -- is removed from each
-line of the code block. For example, this:
-Here is an example of AppleScript:
-
- tell application "Foo"
- beep
- end tell
-
-will turn into:
-<p>Here is an example of AppleScript:</p>
-
-<pre><code>tell application "Foo"
- beep
-end tell
-</code></pre>
-
-A code block continues until it reaches a line that is not indented
-(or the end of the article).
-Within a code block, ampersands (&
) and angle brackets (<
and >
)
-are automatically converted into HTML entities. This makes it very
-easy to include example HTML source code using Markdown -- just paste
-it and indent it, and Markdown will handle the hassle of encoding the
-ampersands and angle brackets. For example, this:
- <div class="footer">
- © 2004 Foo Corporation
- </div>
-
-will turn into:
-<pre><code><div class="footer">
- &copy; 2004 Foo Corporation
-</div>
-</code></pre>
-
-Regular Markdown syntax is not processed within code blocks. E.g.,
-asterisks are just literal asterisks within a code block. This means
-it's also easy to use Markdown to write about Markdown's own syntax.
-Horizontal Rules
-
-You can produce a horizontal rule tag (<hr />
) by placing three or
-more hyphens, asterisks, or underscores on a line by themselves. If you
-wish, you may use spaces between the hyphens or asterisks. Each of the
-following lines will produce a horizontal rule:
-* * *
-
-***
-
-*****
-
-- - -
-
----------------------------------------
-
-_ _ _
-
-
-Span Elements
-
-Links
-
-Markdown supports two style of links: inline and reference .
-In both styles, the link text is delimited by [square brackets].
-To create an inline link, use a set of regular parentheses immediately
-after the link text's closing square bracket. Inside the parentheses,
-put the URL where you want the link to point, along with an optional
-title for the link, surrounded in quotes. For example:
-This is [an example](http://example.com/ "Title") inline link.
-
-[This link](http://example.net/) has no title attribute.
-
-Will produce:
-<p>This is <a href="http://example.com/" title="Title">
-an example</a> inline link.</p>
-
-<p><a href="http://example.net/">This link</a> has no
-title attribute.</p>
-
-If you're referring to a local resource on the same server, you can
-use relative paths:
-See my [About](/about/) page for details.
-
-Reference-style links use a second set of square brackets, inside
-which you place a label of your choosing to identify the link:
-This is [an example][id] reference-style link.
-
-You can optionally use a space to separate the sets of brackets:
-This is [an example] [id] reference-style link.
-
-Then, anywhere in the document, you define your link label like this,
-on a line by itself:
-[id]: http://example.com/ "Optional Title Here"
-
-That is:
-
-Square brackets containing the link identifier (optionally
- indented from the left margin using up to three spaces);
-followed by a colon;
-followed by one or more spaces (or tabs);
-followed by the URL for the link;
-optionally followed by a title attribute for the link, enclosed
- in double or single quotes.
-
-The link URL may, optionally, be surrounded by angle brackets:
-[id]: <http://example.com/> "Optional Title Here"
-
-You can put the title attribute on the next line and use extra spaces
-or tabs for padding, which tends to look better with longer URLs:
-[id]: http://example.com/longish/path/to/resource/here
- "Optional Title Here"
-
-Link definitions are only used for creating links during Markdown
-processing, and are stripped from your document in the HTML output.
-Link definition names may constist of letters, numbers, spaces, and punctuation -- but they are not case sensitive. E.g. these two links:
-[link text][a]
-[link text][A]
-
-are equivalent.
-The implicit link name shortcut allows you to omit the name of the
-link, in which case the link text itself is used as the name.
-Just use an empty set of square brackets -- e.g., to link the word
-"Google" to the google.com web site, you could simply write:
-[Google][]
-
-And then define the link:
-[Google]: http://google.com/
-
-Because link names may contain spaces, this shortcut even works for
-multiple words in the link text:
-Visit [Daring Fireball][] for more information.
-
-And then define the link:
-[Daring Fireball]: http://daringfireball.net/
-
-Link definitions can be placed anywhere in your Markdown document. I
-tend to put them immediately after each paragraph in which they're
-used, but if you want, you can put them all at the end of your
-document, sort of like footnotes.
-Here's an example of reference links in action:
-I get 10 times more traffic from [Google] [1] than from
-[Yahoo] [2] or [MSN] [3].
-
- [1]: http://google.com/ "Google"
- [2]: http://search.yahoo.com/ "Yahoo Search"
- [3]: http://search.msn.com/ "MSN Search"
-
-Using the implicit link name shortcut, you could instead write:
-I get 10 times more traffic from [Google][] than from
-[Yahoo][] or [MSN][].
-
- [google]: http://google.com/ "Google"
- [yahoo]: http://search.yahoo.com/ "Yahoo Search"
- [msn]: http://search.msn.com/ "MSN Search"
-
-Both of the above examples will produce the following HTML output:
-<p>I get 10 times more traffic from <a href="http://google.com/"
-title="Google">Google</a> than from
-<a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a>
-or <a href="http://search.msn.com/" title="MSN Search">MSN</a>.</p>
-
-For comparison, here is the same paragraph written using
-Markdown's inline link style:
-I get 10 times more traffic from [Google](http://google.com/ "Google")
-than from [Yahoo](http://search.yahoo.com/ "Yahoo Search") or
-[MSN](http://search.msn.com/ "MSN Search").
-
-The point of reference-style links is not that they're easier to
-write. The point is that with reference-style links, your document
-source is vastly more readable. Compare the above examples: using
-reference-style links, the paragraph itself is only 81 characters
-long; with inline-style links, it's 176 characters; and as raw HTML,
-it's 234 characters. In the raw HTML, there's more markup than there
-is text.
-With Markdown's reference-style links, a source document much more
-closely resembles the final output, as rendered in a browser. By
-allowing you to move the markup-related metadata out of the paragraph,
-you can add links without interrupting the narrative flow of your
-prose.
-Emphasis
-
-Markdown treats asterisks (*
) and underscores (_
) as indicators of
-emphasis. Text wrapped with one *
or _
will be wrapped with an
-HTML <em>
tag; double *
's or _
's will be wrapped with an HTML
-<strong>
tag. E.g., this input:
-*single asterisks*
-
-_single underscores_
-
-**double asterisks**
-
-__double underscores__
-
-will produce:
-<em>single asterisks</em>
-
-<em>single underscores</em>
-
-<strong>double asterisks</strong>
-
-<strong>double underscores</strong>
-
-You can use whichever style you prefer; the lone restriction is that
-the same character must be used to open and close an emphasis span.
-Emphasis can be used in the middle of a word:
-un*fucking*believable
-
-But if you surround an *
or _
with spaces, it'll be treated as a
-literal asterisk or underscore.
-To produce a literal asterisk or underscore at a position where it
-would otherwise be used as an emphasis delimiter, you can backslash
-escape it:
-\*this text is surrounded by literal asterisks\*
-
-Code
-
-To indicate a span of code, wrap it with backtick quotes (`
).
-Unlike a pre-formatted code block, a code span indicates code within a
-normal paragraph. For example:
-Use the `printf()` function.
-
-will produce:
-<p>Use the <code>printf()</code> function.</p>
-
-To include a literal backtick character within a code span, you can use
-multiple backticks as the opening and closing delimiters:
-``There is a literal backtick (`) here.``
-
-which will produce this:
-<p><code>There is a literal backtick (`) here.</code></p>
-
-The backtick delimiters surrounding a code span may include spaces --
-one after the opening, one before the closing. This allows you to place
-literal backtick characters at the beginning or end of a code span:
-A single backtick in a code span: `` ` ``
-
-A backtick-delimited string in a code span: `` `foo` ``
-
-will produce:
-<p>A single backtick in a code span: <code>`</code></p>
-
-<p>A backtick-delimited string in a code span: <code>`foo`</code></p>
-
-With a code span, ampersands and angle brackets are encoded as HTML
-entities automatically, which makes it easy to include example HTML
-tags. Markdown will turn this:
-Please don't use any `<blink>` tags.
-
-into:
-<p>Please don't use any <code><blink></code> tags.</p>
-
-You can write this:
-`—` is the decimal-encoded equivalent of `—`.
-
-to produce:
-<p><code>&#8212;</code> is the decimal-encoded
-equivalent of <code>&mdash;</code>.</p>
-
-Images
-
-Admittedly, it's fairly difficult to devise a "natural" syntax for
-placing images into a plain text document format.
-Markdown uses an image syntax that is intended to resemble the syntax
-for links, allowing for two styles: inline and reference .
-Inline image syntax looks like this:
-![Alt text](/path/to/img.jpg)
-
-![Alt text](/path/to/img.jpg "Optional title")
-
-That is:
-
-An exclamation mark: !
;
-followed by a set of square brackets, containing the alt
- attribute text for the image;
-followed by a set of parentheses, containing the URL or path to
- the image, and an optional title
attribute enclosed in double
- or single quotes.
-
-Reference-style image syntax looks like this:
-![Alt text][id]
-
-Where "id" is the name of a defined image reference. Image references
-are defined using syntax identical to link references:
-[id]: url/to/image "Optional title attribute"
-
-As of this writing, Markdown has no syntax for specifying the
-dimensions of an image; if this is important to you, you can simply
-use regular HTML <img>
tags.
-
-Miscellaneous
-
-Automatic Links
-
-Markdown supports a shortcut style for creating "automatic" links for URLs and email addresses: simply surround the URL or email address with angle brackets. What this means is that if you want to show the actual text of a URL or email address, and also have it be a clickable link, you can do this:
-<http://example.com/>
-
-Markdown will turn this into:
-<a href="http://example.com/">http://example.com/</a>
-
-Automatic links for email addresses work similarly, except that
-Markdown will also perform a bit of randomized decimal and hex
-entity-encoding to help obscure your address from address-harvesting
-spambots. For example, Markdown will turn this:
-<address@example.com>
-
-into something like this:
-<a href="mailto:addre
-ss@example.co
-m">address@exa
-mple.com</a>
-
-which will render in a browser as a clickable link to "address@example.com".
-(This sort of entity-encoding trick will indeed fool many, if not
-most, address-harvesting bots, but it definitely won't fool all of
-them. It's better than nothing, but an address published in this way
-will probably eventually start receiving spam.)
-Backslash Escapes
-
-Markdown allows you to use backslash escapes to generate literal
-characters which would otherwise have special meaning in Markdown's
-formatting syntax. For example, if you wanted to surround a word with
-literal asterisks (instead of an HTML <em>
tag), you can backslashes
-before the asterisks, like this:
-\*literal asterisks\*
-
-Markdown provides backslash escapes for the following characters:
-\ backslash
-` backtick
-* asterisk
-_ underscore
-{} curly braces
-[] square brackets
-() parentheses
-# hash mark
-+ plus sign
-- minus sign (hyphen)
-. dot
-! exclamation mark
-
\ No newline at end of file
diff --git a/markdown/tests/basic/markdown-syntax.txt b/markdown/tests/basic/markdown-syntax.txt
deleted file mode 100644
index dabd75c..0000000
--- a/markdown/tests/basic/markdown-syntax.txt
+++ /dev/null
@@ -1,888 +0,0 @@
-Markdown: Syntax
-================
-
-
-
-
-* [Overview](#overview)
- * [Philosophy](#philosophy)
- * [Inline HTML](#html)
- * [Automatic Escaping for Special Characters](#autoescape)
-* [Block Elements](#block)
- * [Paragraphs and Line Breaks](#p)
- * [Headers](#header)
- * [Blockquotes](#blockquote)
- * [Lists](#list)
- * [Code Blocks](#precode)
- * [Horizontal Rules](#hr)
-* [Span Elements](#span)
- * [Links](#link)
- * [Emphasis](#em)
- * [Code](#code)
- * [Images](#img)
-* [Miscellaneous](#misc)
- * [Backslash Escapes](#backslash)
- * [Automatic Links](#autolink)
-
-
-**Note:** This document is itself written using Markdown; you
-can [see the source for it by adding '.text' to the URL][src].
-
- [src]: /projects/markdown/syntax.text
-
-* * *
-
-Overview
-
-Philosophy
-
-Markdown is intended to be as easy-to-read and easy-to-write as is feasible.
-
-Readability, however, is emphasized above all else. A Markdown-formatted
-document should be publishable as-is, as plain text, without looking
-like it's been marked up with tags or formatting instructions. While
-Markdown's syntax has been influenced by several existing text-to-HTML
-filters -- including [Setext] [1], [atx] [2], [Textile] [3], [reStructuredText] [4],
-[Grutatext] [5], and [EtText] [6] -- the single biggest source of
-inspiration for Markdown's syntax is the format of plain text email.
-
- [1]: http://docutils.sourceforge.net/mirror/setext.html
- [2]: http://www.aaronsw.com/2002/atx/
- [3]: http://textism.com/tools/textile/
- [4]: http://docutils.sourceforge.net/rst.html
- [5]: http://www.triptico.com/software/grutatxt.html
- [6]: http://ettext.taint.org/doc/
-
-To this end, Markdown's syntax is comprised entirely of punctuation
-characters, which punctuation characters have been carefully chosen so
-as to look like what they mean. E.g., asterisks around a word actually
-look like \*emphasis\*. Markdown lists look like, well, lists. Even
-blockquotes look like quoted passages of text, assuming you've ever
-used email.
-
-
-
-Inline HTML
-
-Markdown's syntax is intended for one purpose: to be used as a
-format for *writing* for the web.
-
-Markdown is not a replacement for HTML, or even close to it. Its
-syntax is very small, corresponding only to a very small subset of
-HTML tags. The idea is *not* to create a syntax that makes it easier
-to insert HTML tags. In my opinion, HTML tags are already easy to
-insert. The idea for Markdown is to make it easy to read, write, and
-edit prose. HTML is a *publishing* format; Markdown is a *writing*
-format. Thus, Markdown's formatting syntax only addresses issues that
-can be conveyed in plain text.
-
-For any markup that is not covered by Markdown's syntax, you simply
-use HTML itself. There's no need to preface it or delimit it to
-indicate that you're switching from Markdown to HTML; you just use
-the tags.
-
-The only restrictions are that block-level HTML elements -- e.g. `