diff options
Diffstat (limited to 'macros/generic/markdown/tests/testfiles/PHP_Markdown/php-specific-bugs.test')
-rw-r--r-- | macros/generic/markdown/tests/testfiles/PHP_Markdown/php-specific-bugs.test | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/macros/generic/markdown/tests/testfiles/PHP_Markdown/php-specific-bugs.test b/macros/generic/markdown/tests/testfiles/PHP_Markdown/php-specific-bugs.test new file mode 100644 index 0000000000..3f3db6c6ee --- /dev/null +++ b/macros/generic/markdown/tests/testfiles/PHP_Markdown/php-specific-bugs.test @@ -0,0 +1,39 @@ +<<< +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" + +>>> +codeSpan: preg(underscore)replace +codeSpan: /e +codeSpan: (underscore)UnslashQuotes +interblockSeparator +interblockSeparator +headingOne: Header "quoted(backslash)" again (backslash)"" +interblockSeparator +headingTwo: Header "quoted(backslash)" again (backslash)"" +interblockSeparator +headingThree: Header "quoted(backslash)" again (backslash)"" +interblockSeparator +codeSpan: (underscore)Detab +interblockSeparator +inputVerbatim: ./_markdown_test/58f5a43337a97a77594d067c159d772c.verbatim |