From 2dbfcc0c510b46c9bfa288cb370b2d4f7fe7555d Mon Sep 17 00:00:00 2001 From: Artem Date: Tue, 24 Jun 2008 20:39:50 +0500 Subject: second commit --- .../php-markdown-cases-new/Backslash escapes.html | 14 ++ .../php-markdown-cases-new/Backslash escapes.txt | 1 + tests2/php-markdown-cases-new/Code Spans.html | 8 ++ tests2/php-markdown-cases-new/Code Spans.txt | 6 + .../Code block in a list item.html | 11 ++ .../Code block in a list item.tags | 1 + .../Code block in a list item.txt | 8 ++ .../php-markdown-cases-new/Email auto links.html | 5 + tests2/php-markdown-cases-new/Email auto links.txt | 3 + tests2/php-markdown-cases-new/Emphasis.html | 160 +++++++++++++++++++++ tests2/php-markdown-cases-new/Emphasis.tags | 1 + tests2/php-markdown-cases-new/Emphasis.txt | 69 +++++++++ tests2/php-markdown-cases-new/Headers.html | 48 +++++++ tests2/php-markdown-cases-new/Headers.txt | 9 ++ .../php-markdown-cases-new/Images (Untitled).html | 8 ++ .../php-markdown-cases-new/Images (Untitled).txt | 7 + .../Inline HTML (Simple).html | 17 +++ .../Inline HTML (Simple).tags | 1 + .../Inline HTML (Simple).txt | 15 ++ .../php-markdown-cases-new/Inline HTML (Span).html | 5 + .../php-markdown-cases-new/Inline HTML (Span).tags | 1 + .../php-markdown-cases-new/Inline HTML (Span).txt | 4 + .../Inline HTML comments.html | 12 ++ .../Inline HTML comments.txt | 9 ++ tests2/php-markdown-cases-new/Ins & del.html | 22 +++ tests2/php-markdown-cases-new/Ins & del.html~ | 24 ++++ tests2/php-markdown-cases-new/Ins & del.txt | 17 +++ .../Links, inline style.html | 2 + .../php-markdown-cases-new/Links, inline style.txt | 1 + tests2/php-markdown-cases-new/MD5 Hashes.html | 14 ++ tests2/php-markdown-cases-new/MD5 Hashes.txt | 11 ++ tests2/php-markdown-cases-new/Nesting.html | 17 +++ tests2/php-markdown-cases-new/Nesting.tags | 1 + tests2/php-markdown-cases-new/Nesting.txt | 11 ++ .../php-markdown-cases-new/PHP-Specific Bugs.html | 20 +++ .../php-markdown-cases-new/PHP-Specific Bugs.txt | 22 +++ tests2/php-markdown-cases-new/Parens in URL.html | 16 +++ tests2/php-markdown-cases-new/Parens in URL.tags | 1 + tests2/php-markdown-cases-new/Parens in URL.txt | 14 ++ tests2/php-markdown-cases-new/Tight blocks.html | 28 ++++ tests2/php-markdown-cases-new/Tight blocks.txt | 1 + 41 files changed, 645 insertions(+) create mode 100644 tests2/php-markdown-cases-new/Backslash escapes.html create mode 100644 tests2/php-markdown-cases-new/Backslash escapes.txt create mode 100644 tests2/php-markdown-cases-new/Code Spans.html create mode 100644 tests2/php-markdown-cases-new/Code Spans.txt create mode 100644 tests2/php-markdown-cases-new/Code block in a list item.html create mode 100644 tests2/php-markdown-cases-new/Code block in a list item.tags create mode 100644 tests2/php-markdown-cases-new/Code block in a list item.txt create mode 100644 tests2/php-markdown-cases-new/Email auto links.html create mode 100644 tests2/php-markdown-cases-new/Email auto links.txt create mode 100644 tests2/php-markdown-cases-new/Emphasis.html create mode 100644 tests2/php-markdown-cases-new/Emphasis.tags create mode 100644 tests2/php-markdown-cases-new/Emphasis.txt create mode 100644 tests2/php-markdown-cases-new/Headers.html create mode 100644 tests2/php-markdown-cases-new/Headers.txt create mode 100644 tests2/php-markdown-cases-new/Images (Untitled).html create mode 100644 tests2/php-markdown-cases-new/Images (Untitled).txt create mode 100644 tests2/php-markdown-cases-new/Inline HTML (Simple).html create mode 100644 tests2/php-markdown-cases-new/Inline HTML (Simple).tags create mode 100644 tests2/php-markdown-cases-new/Inline HTML (Simple).txt create mode 100644 tests2/php-markdown-cases-new/Inline HTML (Span).html create mode 100644 tests2/php-markdown-cases-new/Inline HTML (Span).tags create mode 100644 tests2/php-markdown-cases-new/Inline HTML (Span).txt create mode 100644 tests2/php-markdown-cases-new/Inline HTML comments.html create mode 100644 tests2/php-markdown-cases-new/Inline HTML comments.txt create mode 100644 tests2/php-markdown-cases-new/Ins & del.html create mode 100644 tests2/php-markdown-cases-new/Ins & del.html~ create mode 100644 tests2/php-markdown-cases-new/Ins & del.txt create mode 100644 tests2/php-markdown-cases-new/Links, inline style.html create mode 100644 tests2/php-markdown-cases-new/Links, inline style.txt create mode 100644 tests2/php-markdown-cases-new/MD5 Hashes.html create mode 100644 tests2/php-markdown-cases-new/MD5 Hashes.txt create mode 100644 tests2/php-markdown-cases-new/Nesting.html create mode 100644 tests2/php-markdown-cases-new/Nesting.tags create mode 100644 tests2/php-markdown-cases-new/Nesting.txt create mode 100644 tests2/php-markdown-cases-new/PHP-Specific Bugs.html create mode 100644 tests2/php-markdown-cases-new/PHP-Specific Bugs.txt create mode 100644 tests2/php-markdown-cases-new/Parens in URL.html create mode 100644 tests2/php-markdown-cases-new/Parens in URL.tags create mode 100644 tests2/php-markdown-cases-new/Parens in URL.txt create mode 100644 tests2/php-markdown-cases-new/Tight blocks.html create mode 100644 tests2/php-markdown-cases-new/Tight blocks.txt (limited to 'tests2/php-markdown-cases-new') diff --git a/tests2/php-markdown-cases-new/Backslash escapes.html b/tests2/php-markdown-cases-new/Backslash escapes.html new file mode 100644 index 0000000..6d65ce1 --- /dev/null +++ b/tests2/php-markdown-cases-new/Backslash escapes.html @@ -0,0 +1,14 @@ +

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. +

diff --git a/tests2/php-markdown-cases-new/Code Spans.txt b/tests2/php-markdown-cases-new/Code Spans.txt new file mode 100644 index 0000000..43f2bcf --- /dev/null +++ b/tests2/php-markdown-cases-new/Code Spans.txt @@ -0,0 +1,6 @@ +From `` +on two lines. + +From `` +on three lines. diff --git a/tests2/php-markdown-cases-new/Code block in a list item.html b/tests2/php-markdown-cases-new/Code block in a list item.html new file mode 100644 index 0000000..ed86f62 --- /dev/null +++ b/tests2/php-markdown-cases-new/Code block in a list item.html @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/tests2/php-markdown-cases-new/Code block in a list item.tags b/tests2/php-markdown-cases-new/Code block in a list item.tags new file mode 100644 index 0000000..a3d2682 --- /dev/null +++ b/tests2/php-markdown-cases-new/Code block in a list item.tags @@ -0,0 +1 @@ +knownfailure eol dontcare # fails just because of trailing EOL diff --git a/tests2/php-markdown-cases-new/Code block in a list item.txt b/tests2/php-markdown-cases-new/Code block in a list item.txt new file mode 100644 index 0000000..3fa24c3 --- /dev/null +++ b/tests2/php-markdown-cases-new/Code block in a list item.txt @@ -0,0 +1,8 @@ + +* List Item: + + code block + + with a blank line + + within a list item. \ No newline at end of file diff --git a/tests2/php-markdown-cases-new/Email auto links.html b/tests2/php-markdown-cases-new/Email auto links.html new file mode 100644 index 0000000..36fb7e7 --- /dev/null +++ b/tests2/php-markdown-cases-new/Email auto links.html @@ -0,0 +1,5 @@ +

michel.fortin@michelf.com +

+ +

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 @@ + + +International domain names: \ No newline at end of file diff --git a/tests2/php-markdown-cases-new/Emphasis.html b/tests2/php-markdown-cases-new/Emphasis.html new file mode 100644 index 0000000..85a532d --- /dev/null +++ b/tests2/php-markdown-cases-new/Emphasis.html @@ -0,0 +1,160 @@ +

Combined emphasis: +

+ +
    +
  1. +test test +
  2. +
  3. +test test +
  4. +
  5. +test test +
  6. +
  7. +test test +
  8. +
  9. +test test +
  10. +
  11. +test test +
  12. +
  13. +test test +
  14. +
  15. +test test +
  16. +
  17. +test test +
  18. +
  19. +test test +
  20. +
  21. +test test +
  22. +
  23. +test test +
  24. +
  25. +test test +
  26. +
  27. +test test +
  28. +
  29. +test test +
  30. +
  31. +test test +
  32. +
+ +

Incorrect nesting: +

+ +
    +
  1. +*test test* test +
  2. +
  3. +_test test_ test +
  4. +
  5. +**test test* test* +
  6. +
  7. +__test test_ test_ +
  8. +
  9. +test *test test* +
  10. +
  11. +test _test test_ +
  12. +
  13. +test test test +
  14. +
  15. +test test test +
  16. +
+ +

No emphasis: +

+ +
    +
  1. +test* test *test +
  2. +
  3. +test** test **test +
  4. +
  5. +test_ test _test +
  6. +
  7. +test__ test __test +
  8. +
+ +

Middle-word emphasis (asterisks): +

+ +
    +
  1. +ab +
  2. +
  3. +ab +
  4. +
  5. +abc +
  6. +
  7. +ab +
  8. +
  9. +ab +
  10. +
  11. +abc +
  12. +
+ +

Middle-word emphasis (underscore): +

+ +
    +
  1. +ab +
  2. +
  3. +ab +
  4. +
  5. +abc +
  6. +
  7. +ab +
  8. +
  9. +ab +
  10. +
  11. +abc +
  12. +
+ +

mypreciousfile.txt +

+ +

Tricky Cases

+ +

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 @@ +

Header

+ +

Header

+ +

Header

+ +
+ +

Header

+ +

Paragraph +

+ +

Header

+ +

Paragraph +

+ +

Header

+ +

Paragraph +

+ +
+ +

Paragraph +

+ +

Header

+ +

Paragraph +

+ +

Paragraph +

+ +

Header

+ +

Paragraph +

+ +

Paragraph +

+ +

Header

+ +

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 @@ +

alt text +

+ +

alt text +

+ +

alt text +

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: +

+ +
+ foo +
+ +
+ foo +
+ +

Hr's: +

+ +
\ No newline at end of file diff --git a/tests2/php-markdown-cases-new/Inline HTML (Simple).tags b/tests2/php-markdown-cases-new/Inline HTML (Simple).tags new file mode 100644 index 0000000..a3d2682 --- /dev/null +++ b/tests2/php-markdown-cases-new/Inline HTML (Simple).tags @@ -0,0 +1 @@ +knownfailure eol dontcare # fails just because of trailing EOL diff --git a/tests2/php-markdown-cases-new/Inline HTML (Simple).txt b/tests2/php-markdown-cases-new/Inline HTML (Simple).txt new file mode 100644 index 0000000..9177105 --- /dev/null +++ b/tests2/php-markdown-cases-new/Inline HTML (Simple).txt @@ -0,0 +1,15 @@ +With some attributes: + +
+ foo +
+ +
+ foo +
+ +Hr's: + +
diff --git a/tests2/php-markdown-cases-new/Inline HTML (Span).html b/tests2/php-markdown-cases-new/Inline HTML (Span).html new file mode 100644 index 0000000..beddfe2 --- /dev/null +++ b/tests2/php-markdown-cases-new/Inline HTML (Span).html @@ -0,0 +1,5 @@ +

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 is ins as a paragraph. + + +

And here it is in the middle of a paragraph. +

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..82bfb2b --- /dev/null +++ b/tests2/php-markdown-cases-new/Ins & del.html~ @@ -0,0 +1,24 @@ +

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/tests2/php-markdown-cases-new/Ins & del.txt b/tests2/php-markdown-cases-new/Ins & del.txt new file mode 100644 index 0000000..2d54c66 --- /dev/null +++ b/tests2/php-markdown-cases-new/Ins & del.txt @@ -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/tests2/php-markdown-cases-new/Links, inline style.html b/tests2/php-markdown-cases-new/Links, inline style.html new file mode 100644 index 0000000..195cedf --- /dev/null +++ b/tests2/php-markdown-cases-new/Links, inline style.html @@ -0,0 +1,2 @@ +

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 @@ +

Character Escapes

+ +

The MD5 value for + is "26b17225b626fb9238849fd60eabdf60". +

+ +

HTML Blocks

+ +

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: +

+ +

[Link](url) +

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). +

+ +

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/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 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/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: +

+ +

Header

+ +

Paragraph before blockquote: +

+ +
+

Some quote. +

+
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 -- cgit v1.2.3