From 2dbfcc0c510b46c9bfa288cb370b2d4f7fe7555d Mon Sep 17 00:00:00 2001
From: Artem ", " ")
+ result = result.replace("\n<", "<")
+ result = result.replace("", "\n")
+ result = result.replace(" ", "> ")
+ result = result.replace("\" />", "\"/>")
+ result = result.replace("
Tricky combinaisons: +
+ +backslash with \-- two dashes +
+ +backslash with \> greater than +
+ +\[test](not a link) +
+ +\*no emphasis* +
diff --git a/tests2/php-markdown-cases-new/Backslash escapes.txt b/tests2/php-markdown-cases-new/Backslash escapes.txt new file mode 100644 index 0000000..a5e769b --- /dev/null +++ b/tests2/php-markdown-cases-new/Backslash escapes.txt @@ -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/tests2/php-markdown-cases-new/Code Spans.html b/tests2/php-markdown-cases-new/Code Spans.html new file mode 100644 index 0000000..a5a2ddc --- /dev/null +++ b/tests2/php-markdown-cases-new/Code Spans.html @@ -0,0 +1,8 @@ +From <!--
to -->
+on two lines.
+
From <!--
+to -->
+on three lines.
+
List Item: +
+ +code block
+
+with a blank line
+
within a list item. +
+International domain names: help@tūdaliņ.lv +
diff --git a/tests2/php-markdown-cases-new/Email auto links.txt b/tests2/php-markdown-cases-new/Email auto links.txt new file mode 100644 index 0000000..a8af4ec --- /dev/null +++ b/tests2/php-markdown-cases-new/Email auto links.txt @@ -0,0 +1,3 @@ +Combined emphasis: +
+ +Incorrect nesting: +
+ +No emphasis: +
+ +Middle-word emphasis (asterisks): +
+ +Middle-word emphasis (underscore): +
+ +mypreciousfile.txt +
+ +E**. Test TestTestTest +
+ +E**. Test Test Test Test +
diff --git a/tests2/php-markdown-cases-new/Emphasis.tags b/tests2/php-markdown-cases-new/Emphasis.tags new file mode 100644 index 0000000..06cb210 --- /dev/null +++ b/tests2/php-markdown-cases-new/Emphasis.tags @@ -0,0 +1 @@ +knownfailure dontcare # need a re-write based on html5lib (or something) to fix diff --git a/tests2/php-markdown-cases-new/Emphasis.txt b/tests2/php-markdown-cases-new/Emphasis.txt new file mode 100644 index 0000000..ec48dec --- /dev/null +++ b/tests2/php-markdown-cases-new/Emphasis.txt @@ -0,0 +1,69 @@ +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 diff --git a/tests2/php-markdown-cases-new/Headers.html b/tests2/php-markdown-cases-new/Headers.html new file mode 100644 index 0000000..84628d3 --- /dev/null +++ b/tests2/php-markdown-cases-new/Headers.html @@ -0,0 +1,48 @@ +Paragraph +
+ +Paragraph +
+ +Paragraph +
+ +Paragraph +
+ +Paragraph +
+ +Paragraph +
+ +Paragraph +
+ +Paragraph +
+ +Paragraph +
diff --git a/tests2/php-markdown-cases-new/Headers.txt b/tests2/php-markdown-cases-new/Headers.txt new file mode 100644 index 0000000..3a39174 --- /dev/null +++ b/tests2/php-markdown-cases-new/Headers.txt @@ -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/tests2/php-markdown-cases-new/Images (Untitled).html b/tests2/php-markdown-cases-new/Images (Untitled).html new file mode 100644 index 0000000..6ca4df1 --- /dev/null +++ b/tests2/php-markdown-cases-new/Images (Untitled).html @@ -0,0 +1,8 @@ ++
+ ++
+ ++
diff --git a/tests2/php-markdown-cases-new/Images (Untitled).txt b/tests2/php-markdown-cases-new/Images (Untitled).txt new file mode 100644 index 0000000..cb481de --- /dev/null +++ b/tests2/php-markdown-cases-new/Images (Untitled).txt @@ -0,0 +1,7 @@ +![alt text](/url/) + +![alt text]() + +![alt text][foo] + + [foo]: /url/ \ No newline at end of file diff --git a/tests2/php-markdown-cases-new/Inline HTML (Simple).html b/tests2/php-markdown-cases-new/Inline HTML (Simple).html new file mode 100644 index 0000000..2bb568d --- /dev/null +++ b/tests2/php-markdown-cases-new/Inline HTML (Simple).html @@ -0,0 +1,17 @@ +With some attributes: +
+ +Hr's: +
+ +ACINACS +
+ +SB +SB
\ No newline at end of file diff --git a/tests2/php-markdown-cases-new/Inline HTML (Span).tags b/tests2/php-markdown-cases-new/Inline HTML (Span).tags new file mode 100644 index 0000000..06cb210 --- /dev/null +++ b/tests2/php-markdown-cases-new/Inline HTML (Span).tags @@ -0,0 +1 @@ +knownfailure dontcare # need a re-write based on html5lib (or something) to fix diff --git a/tests2/php-markdown-cases-new/Inline HTML (Span).txt b/tests2/php-markdown-cases-new/Inline HTML (Span).txt new file mode 100644 index 0000000..19028bb --- /dev/null +++ b/tests2/php-markdown-cases-new/Inline HTML (Span).txt @@ -0,0 +1,4 @@ +ACINACS + +SB +SB \ No newline at end of file diff --git a/tests2/php-markdown-cases-new/Inline HTML comments.html b/tests2/php-markdown-cases-new/Inline HTML comments.html new file mode 100644 index 0000000..877bcfb --- /dev/null +++ b/tests2/php-markdown-cases-new/Inline HTML comments.html @@ -0,0 +1,12 @@ +Paragraph one. +
+ + + +Paragraph two. +
+ + + +The end. +
diff --git a/tests2/php-markdown-cases-new/Inline HTML comments.txt b/tests2/php-markdown-cases-new/Inline HTML comments.txt new file mode 100644 index 0000000..d57d00a --- /dev/null +++ b/tests2/php-markdown-cases-new/Inline HTML comments.txt @@ -0,0 +1,9 @@ +Paragraph one. + + + +Paragraph two. + + + +The end. diff --git a/tests2/php-markdown-cases-new/Ins & del.html b/tests2/php-markdown-cases-new/Ins & del.html new file mode 100644 index 0000000..f5997a7 --- /dev/null +++ b/tests2/php-markdown-cases-new/Ins & del.html @@ -0,0 +1,22 @@ +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 it is in the middle of a paragraph.
+
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 it is in the middle of a paragraph.
+
Some text
+ + +And here it is inside a paragraph. + +And here it is in the middle of a paragraph. + +Some text
+silly URL w/ angle brackets. +
diff --git a/tests2/php-markdown-cases-new/Links, inline style.txt b/tests2/php-markdown-cases-new/Links, inline style.txt new file mode 100644 index 0000000..600a044 --- /dev/null +++ b/tests2/php-markdown-cases-new/Links, inline style.txt @@ -0,0 +1 @@ +[silly URL w/ angle brackets](}]*+|&)>). diff --git a/tests2/php-markdown-cases-new/MD5 Hashes.html b/tests2/php-markdown-cases-new/MD5 Hashes.html new file mode 100644 index 0000000..91283e0 --- /dev/null +++ b/tests2/php-markdown-cases-new/MD5 Hashes.html @@ -0,0 +1,14 @@ +The MD5 value for +
is "26b17225b626fb9238849fd60eabdf60".
+
test
+ +The MD5 value for <p>test</p>
is:
+
6205333b793f34273d75379350b36826 +
diff --git a/tests2/php-markdown-cases-new/MD5 Hashes.txt b/tests2/php-markdown-cases-new/MD5 Hashes.txt new file mode 100644 index 0000000..7e03221 --- /dev/null +++ b/tests2/php-markdown-cases-new/MD5 Hashes.txt @@ -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/tests2/php-markdown-cases-new/Nesting.html b/tests2/php-markdown-cases-new/Nesting.html new file mode 100644 index 0000000..be47e21 --- /dev/null +++ b/tests2/php-markdown-cases-new/Nesting.html @@ -0,0 +1,17 @@ +Valid nesting: +
+ +Link +
+ +Link +
+ +Link +
+ +Invalid nesting: +
+ + diff --git a/tests2/php-markdown-cases-new/Nesting.tags b/tests2/php-markdown-cases-new/Nesting.tags new file mode 100644 index 0000000..cb77ed3 --- /dev/null +++ b/tests2/php-markdown-cases-new/Nesting.tags @@ -0,0 +1 @@ +knownfailure dontcare diff --git a/tests2/php-markdown-cases-new/Nesting.txt b/tests2/php-markdown-cases-new/Nesting.txt new file mode 100644 index 0000000..791538c --- /dev/null +++ b/tests2/php-markdown-cases-new/Nesting.txt @@ -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/tests2/php-markdown-cases-new/PHP-Specific Bugs.html b/tests2/php-markdown-cases-new/PHP-Specific Bugs.html new file mode 100644 index 0000000..19943dd --- /dev/null +++ b/tests2/php-markdown-cases-new/PHP-Specific Bugs.html @@ -0,0 +1,20 @@ +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). +
+ +Test with tabs for _Detab
:
+
Code 'block' with some "tabs" and "quotes"
+
diff --git a/tests2/php-markdown-cases-new/PHP-Specific Bugs.txt b/tests2/php-markdown-cases-new/PHP-Specific Bugs.txt
new file mode 100644
index 0000000..246b60d
--- /dev/null
+++ b/tests2/php-markdown-cases-new/PHP-Specific Bugs.txt
@@ -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/tests2/php-markdown-cases-new/Parens in URL.html b/tests2/php-markdown-cases-new/Parens in URL.html
new file mode 100644
index 0000000..24254ff
--- /dev/null
+++ b/tests2/php-markdown-cases-new/Parens in URL.html
@@ -0,0 +1,16 @@
+
+
+
+
+Inline link 3 with non-escaped parens. +
+ +Inline link 4 with non-escaped parens. +
+ +Reference link 1 with parens. +
+ + \ No newline at end of file diff --git a/tests2/php-markdown-cases-new/Parens in URL.tags b/tests2/php-markdown-cases-new/Parens in URL.tags new file mode 100644 index 0000000..918b7e8 --- /dev/null +++ b/tests2/php-markdown-cases-new/Parens in URL.tags @@ -0,0 +1 @@ +dontcare knownfailure diff --git a/tests2/php-markdown-cases-new/Parens in URL.txt b/tests2/php-markdown-cases-new/Parens in URL.txt new file mode 100644 index 0000000..bb7be4f --- /dev/null +++ b/tests2/php-markdown-cases-new/Parens in URL.txt @@ -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/tests2/php-markdown-cases-new/Tight blocks.html b/tests2/php-markdown-cases-new/Tight blocks.html new file mode 100644 index 0000000..3d9342d --- /dev/null +++ b/tests2/php-markdown-cases-new/Tight blocks.html @@ -0,0 +1,28 @@ +Paragraph and no space: +* ciao +
+ +Paragraph and 1 space: + * ciao +
+ +Paragraph and 3 spaces: + * ciao +
+ +Paragraph and 4 spaces: + * ciao +
+ +Paragraph before header: +
+ +Paragraph before blockquote: +
+ ++diff --git a/tests2/php-markdown-cases-new/Tight blocks.txt b/tests2/php-markdown-cases-new/Tight blocks.txt new file mode 100644 index 0000000..ae4cdcb --- /dev/null +++ b/tests2/php-markdown-cases-new/Tight blocks.txt @@ -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/tests2/renamer b/tests2/renamer new file mode 100755 index 0000000..24add6f --- /dev/null +++ b/tests2/renamer @@ -0,0 +1,15 @@ +#!/bin/bash +test_dirs=( "markdowntest-cases" "php-markdown-cases" "php-markdown-extra-cases" "tm-cases" ) + +old_ext="text" +new_ext="txt" + +for (( i = 0 ; i < "${#test_dirs[@]}"; i++ )) +do + for j in "${test_dirs[$i]}"/*.${old_ext} + do + mv "$j" "${j/.text}".${new_ext} + done +done + + diff --git a/tests2/tm-cases-new/auto_link.html b/tests2/tm-cases-new/auto_link.html new file mode 100644 index 0000000..8299181 --- /dev/null +++ b/tests2/tm-cases-new/auto_link.html @@ -0,0 +1,5 @@ +Some quote. +
+
I can has autolink? http://icanhascheeseburger.com +
+Ask garfield: garfield@example.com +
+ diff --git a/tests2/tm-cases-new/auto_link.txt b/tests2/tm-cases-new/auto_link.txt new file mode 100644 index 0000000..e5354cd --- /dev/null +++ b/tests2/tm-cases-new/auto_link.txt @@ -0,0 +1,3 @@ +I can has autolink?[Trent wrote] +
+ +++ +no way +
+
[Jeff wrote] +
+ ++diff --git a/tests2/tm-cases-new/blockquote.txt b/tests2/tm-cases-new/blockquote.txt new file mode 100644 index 0000000..3bcecaa --- /dev/null +++ b/tests2/tm-cases-new/blockquote.txt @@ -0,0 +1,5 @@ +[Trent wrote] +> no way + +[Jeff wrote] +> way diff --git a/tests2/tm-cases-new/blockquote_with_pre.html b/tests2/tm-cases-new/blockquote_with_pre.html new file mode 100644 index 0000000..431c06a --- /dev/null +++ b/tests2/tm-cases-new/blockquote_with_pre.html @@ -0,0 +1,9 @@ +way +
+
+diff --git a/tests2/tm-cases-new/blockquote_with_pre.txt b/tests2/tm-cases-new/blockquote_with_pre.txt new file mode 100644 index 0000000..e61b82f --- /dev/null +++ b/tests2/tm-cases-new/blockquote_with_pre.txt @@ -0,0 +1,6 @@ +> Markdown indents blockquotes a couple of spaces +> necessitating some tweaks for pre-blocks in that +> blockquote: +> +> here is a check +> for that diff --git a/tests2/tm-cases-new/code_block_with_tabs.html b/tests2/tm-cases-new/code_block_with_tabs.html new file mode 100644 index 0000000..cc12d18 --- /dev/null +++ b/tests2/tm-cases-new/code_block_with_tabs.html @@ -0,0 +1,5 @@ +Markdown indents blockquotes a couple of spaces + necessitating some tweaks for pre-blocks in that + blockquote: +
+ +here is a check +for that +
Test with tabs for _Detab
:
+
Code 'block' with some "tabs" and "quotes"
+
diff --git a/tests2/tm-cases-new/code_block_with_tabs.tags b/tests2/tm-cases-new/code_block_with_tabs.tags
new file mode 100644
index 0000000..981bc5a
--- /dev/null
+++ b/tests2/tm-cases-new/code_block_with_tabs.tags
@@ -0,0 +1 @@
+fromphpmarkdown # from PHP Markdown test "Parens in URL.text"
diff --git a/tests2/tm-cases-new/code_block_with_tabs.txt b/tests2/tm-cases-new/code_block_with_tabs.txt
new file mode 100644
index 0000000..bcf94c4
--- /dev/null
+++ b/tests2/tm-cases-new/code_block_with_tabs.txt
@@ -0,0 +1,3 @@
+Test with tabs for `_Detab`:
+
+ Code 'block' with some "tabs" and "quotes"
diff --git a/tests2/tm-cases-new/codeblock.html b/tests2/tm-cases-new/codeblock.html
new file mode 100644
index 0000000..f9e04d0
--- /dev/null
+++ b/tests2/tm-cases-new/codeblock.html
@@ -0,0 +1,7 @@
+some code
+
some 'splaining +
+ +some more code
+2 > 1
+
diff --git a/tests2/tm-cases-new/codeblock.txt b/tests2/tm-cases-new/codeblock.txt
new file mode 100644
index 0000000..d374216
--- /dev/null
+++ b/tests2/tm-cases-new/codeblock.txt
@@ -0,0 +1,7 @@
+ some code
+
+some 'splaining
+
+ some more code
+ 2 > 1
+
diff --git a/tests2/tm-cases-new/codespans.html b/tests2/tm-cases-new/codespans.html
new file mode 100644
index 0000000..b9994a1
--- /dev/null
+++ b/tests2/tm-cases-new/codespans.html
@@ -0,0 +1,3 @@
+This
is a code span.
+And This is one with an `embedded backtick`
.
+
This
is a code span.
+And This is one with an `embedded backtick`
.
+
This is italic and this is bold. +This is also italic and this is bold. +
diff --git a/tests2/tm-cases-new/emphasis.txt b/tests2/tm-cases-new/emphasis.txt new file mode 100644 index 0000000..99c324e --- /dev/null +++ b/tests2/tm-cases-new/emphasis.txt @@ -0,0 +1,2 @@ +This is *italic* and this is **bold**. +This is also _italic_ and this is __bold__. diff --git a/tests2/tm-cases-new/escapes.html b/tests2/tm-cases-new/escapes.html new file mode 100644 index 0000000..bcf6f3c --- /dev/null +++ b/tests2/tm-cases-new/escapes.html @@ -0,0 +1,79 @@ +**don't shout** +
+ +*don't emphasize* +
+ +_literal underscores_ +
+ +__more literal underscores__ +
+ +This is not a [link](/url/). +
+ +This is a link, not an image link: !link. +
+ +Should this be an http://autolink\ or not? +I'll ask on markdown-discuss. +I suspect PHP markdown is considering this NOT an autolink. +
+ +This is not a [link definition][link1] but this is. +
+ +In a code block: +
+ +escapes should \*not\* be \_interpreted\_
+even \`backticks\`
+
+
+Getting backticks and backslash-escapes working correctly with +code spans can be tricky: +
+ +a normal code span
+
need multiple backticks to include a literal ` backtick
+
`use a leading space to start a code span with a backtick
+
use a trailing space to end a code span with a backtick`
+
backslash-escapes \(are\) \*not\* \`interpreted\` in a code span
+
`a code span prefixed with a literal backtick
+
`not a code span` +
+ +Note A: The (?!`)
after the \1
group in the
+_DoCodeSpans()/_do_code_spans()
regex is necessary to ensure that a backtick
+doesn't match at the start of the code block (group \2
) in an example like
+this:
+
foo
+Dashes: +
+ +---
+
diff --git a/tests2/tm-cases-new/hr.txt b/tests2/tm-cases-new/hr.txt
new file mode 100644
index 0000000..765b735
--- /dev/null
+++ b/tests2/tm-cases-new/hr.txt
@@ -0,0 +1,12 @@
+Dashes:
+
+---
+
+ ---
+
+ ---
+
+ ---
+
+ ---
+
diff --git a/tests2/tm-cases-new/img_in_link.html b/tests2/tm-cases-new/img_in_link.html
new file mode 100644
index 0000000..b51d5d6
--- /dev/null
+++ b/tests2/tm-cases-new/img_in_link.html
@@ -0,0 +1,6 @@
+This example from +http://orestis.gr/en/blog/2007/05/28/python-markdown-problems/: +
+ + diff --git a/tests2/tm-cases-new/img_in_link.txt b/tests2/tm-cases-new/img_in_link.txt new file mode 100644 index 0000000..98f6075 --- /dev/null +++ b/tests2/tm-cases-new/img_in_link.txt @@ -0,0 +1,7 @@ +This example from +an inline link +
+ + + +an inline +
+ +an +
diff --git a/tests2/tm-cases-new/inline_links.txt b/tests2/tm-cases-new/inline_links.txt new file mode 100644 index 0000000..444a997 --- /dev/null +++ b/tests2/tm-cases-new/inline_links.txt @@ -0,0 +1,7 @@ +an inline [link](/url/) + +a [link "with" title](/url/ "title") + +an inline ![image link](/url/) + +an ![image "with" title](/url/ "title") diff --git a/tests2/tm-cases-new/link_defn_alt_title_delims.html b/tests2/tm-cases-new/link_defn_alt_title_delims.html new file mode 100644 index 0000000..0ff3742 --- /dev/null +++ b/tests2/tm-cases-new/link_defn_alt_title_delims.html @@ -0,0 +1,4 @@ +Alternative delimiters for link definitions are allowed -- as of +Markdown 1.0.2, I think. Hence, this link and this link work +too. +
diff --git a/tests2/tm-cases-new/link_defn_alt_title_delims.txt b/tests2/tm-cases-new/link_defn_alt_title_delims.txt new file mode 100644 index 0000000..3d62b11 --- /dev/null +++ b/tests2/tm-cases-new/link_defn_alt_title_delims.txt @@ -0,0 +1,7 @@ +Alternative delimiters for [link definitions][link1] are allowed -- as of +Markdown 1.0.2, I think. Hence, [this link][link2] and [this link][link3] work +too. + +[link1]: http://daringfireball.net/projects/markdown/syntax#link "link syntax" +[link2]: http://daringfireball.net/projects/markdown/syntax#link 'link syntax' +[link3]: http://daringfireball.net/projects/markdown/syntax#link (link syntax) diff --git a/tests2/tm-cases-new/lists.html b/tests2/tm-cases-new/lists.html new file mode 100644 index 0000000..5d7ec15 --- /dev/null +++ b/tests2/tm-cases-new/lists.html @@ -0,0 +1,29 @@ +count: +
+ +count in spanish: +
+ +mixed bullets: +
+ +ul followed by ol: +
+ +This is a [missing link][missing] and a used link. +
diff --git a/tests2/tm-cases-new/missing_link_defn.txt b/tests2/tm-cases-new/missing_link_defn.txt new file mode 100644 index 0000000..817677f --- /dev/null +++ b/tests2/tm-cases-new/missing_link_defn.txt @@ -0,0 +1,7 @@ + +This is a [missing link][missing] and a [used link][used]. + + +[used]: http://foo.com +[unused]: http://foo.com + diff --git a/tests2/tm-cases-new/nested_list.html b/tests2/tm-cases-new/nested_list.html new file mode 100644 index 0000000..d370acd --- /dev/null +++ b/tests2/tm-cases-new/nested_list.html @@ -0,0 +1,28 @@ +shopping list: +
+ +Inline link 4 with non-escaped parens. +
diff --git a/tests2/tm-cases-new/parens_in_url_4.tags b/tests2/tm-cases-new/parens_in_url_4.tags new file mode 100644 index 0000000..981bc5a --- /dev/null +++ b/tests2/tm-cases-new/parens_in_url_4.tags @@ -0,0 +1 @@ +fromphpmarkdown # from PHP Markdown test "Parens in URL.text" diff --git a/tests2/tm-cases-new/parens_in_url_4.txt b/tests2/tm-cases-new/parens_in_url_4.txt new file mode 100644 index 0000000..5dfb9ab --- /dev/null +++ b/tests2/tm-cases-new/parens_in_url_4.txt @@ -0,0 +1 @@ +[Inline link 4 with non-escaped parens]( "title"). diff --git a/tests2/tm-cases-new/raw_html.html b/tests2/tm-cases-new/raw_html.html new file mode 100644 index 0000000..2ae6fe9 --- /dev/null +++ b/tests2/tm-cases-new/raw_html.html @@ -0,0 +1,6 @@ +Hi, there. blah +
+ +Google is fast . +
diff --git a/tests2/tm-cases-new/ref_links.txt b/tests2/tm-cases-new/ref_links.txt new file mode 100644 index 0000000..4df8c01 --- /dev/null +++ b/tests2/tm-cases-new/ref_links.txt @@ -0,0 +1,6 @@ +[Google][] is fast ![star][]. + +[google]: http://www.google.com/ +[star]: /img/star.png + + diff --git a/tests2/tm-cases-new/sublist-para.html b/tests2/tm-cases-new/sublist-para.html new file mode 100644 index 0000000..f1d47bf --- /dev/null +++ b/tests2/tm-cases-new/sublist-para.html @@ -0,0 +1,36 @@ +Some quick thoughts from a coder's perspective: +
+ +The source will be available in a Mercurial ... +
+Komodo is a Mozilla-based application... +
+ +What this means is that work on and add significant functionality... +
+Komodo uses the same extension mechanisms as Firefox... +
+Komodo builds and runs on Windows, Linux and ... +
+isn't really correct, but Markdown.pl does the same diff --git a/tests2/tm-cases-new/sublist-para.txt b/tests2/tm-cases-new/sublist-para.txt new file mode 100644 index 0000000..7bf07ba --- /dev/null +++ b/tests2/tm-cases-new/sublist-para.txt @@ -0,0 +1,17 @@ +Some quick thoughts from a coder's perspective: + +- The source will be available in a Mercurial ... + +- Komodo is a Mozilla-based application... + + - Get a slightly tweaked mozilla build (C++, JavaScript, XUL). + - Get a slightly tweaks Python build (C). + - Add a bunch of core logic (Python)... + - Add Komodo chrome (XUL, JavaScript, CSS, DTDs). + + What this means is that work on and add significant functionality... + +- Komodo uses the same extension mechanisms as Firefox... + +- Komodo builds and runs on Windows, Linux and ... + diff --git a/tests2/tm-cases-new/tricky_anchors.html b/tests2/tm-cases-new/tricky_anchors.html new file mode 100644 index 0000000..af40218 --- /dev/null +++ b/tests2/tm-cases-new/tricky_anchors.html @@ -0,0 +1,17 @@ +
+ + + +full link [like](/this/) in text +
+ + + +[only open bracket(/in/) text +
+ +only close bracket text](/url/) +
diff --git a/tests2/tm-cases-new/tricky_anchors.txt b/tests2/tm-cases-new/tricky_anchors.txt new file mode 100644 index 0000000..217f685 --- /dev/null +++ b/tests2/tm-cases-new/tricky_anchors.txt @@ -0,0 +1,11 @@ +[with [brackets][] in text](/url/) + +[with [[brackets][]] in text](/url/ "a title") + +[full link [like](/this/) in text](/url/) + +[full link to img ![like](/this/) is ok](/url/) + +[only open [bracket(/in/) text](/url/ 'a title') + +[only close bracket](/in/) text](/url/) diff --git a/tests2/tm-cases-new/underline_in_autolink.html b/tests2/tm-cases-new/underline_in_autolink.html new file mode 100644 index 0000000..f5f21eb --- /dev/null +++ b/tests2/tm-cases-new/underline_in_autolink.html @@ -0,0 +1,3 @@ +Eric wrote up a (long) intro to writing UDL definitions a while back on +his blog: http://blogs.activestate.com/ericp/2007/01/kid_adding_a_ne.html +
diff --git a/tests2/tm-cases-new/underline_in_autolink.txt b/tests2/tm-cases-new/underline_in_autolink.txt new file mode 100644 index 0000000..58ae3e0 --- /dev/null +++ b/tests2/tm-cases-new/underline_in_autolink.txt @@ -0,0 +1,2 @@ +Eric wrote up a (long) intro to writing UDL definitions a while back on +his blog: