summaryrefslogtreecommitdiff
path: root/macros/generic/markdown/tests/testfiles/PHP_Markdown/php-specific-bugs.test
blob: 3f3db6c6eec2ed389a0be7efd50356db8a582c52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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