aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/michelf/php-markdown/test/resources/php-markdown-extra.mdtest/Inline HTML with Markdown content.xhtml
blob: 06a1fca27e5058a285f508876aede0d680cfb809 (plain) (blame)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<h1>Markdown inside code blocks</h1>

<div>

<p>foo</p>

</div>

<div>

<p>foo</p>

</div>

<div>

<p>foo</p>

</div>

<table>
<tr><td>test <em>emphasis</em> (span)</td></tr>
</table>

<table>
<tr><td>test <em>emphasis</em> (span)</td></tr>
</table>

<table>
<tr><td>

<p>test <em>emphasis</em> (block)</p>

</td></tr>
</table>

<h2>More complicated</h2>

<table>
<tr><td>
* this is <em>not</em> a list item</td></tr>
<tr><td>
* this is <em>not</em> a list item</td></tr>
<tr><td>

<ul>
<li>this <em>is</em> a list item</li>
</ul>

</td></tr>
</table>

<h2>With indent</h2>

<div>
    <div>

<p>This text is no code block: if it was, the 
closing <code>&lt;div&gt;</code> would be too and the HTML block 
would be invalid.</p>

<p>Markdown content in HTML blocks is assumed to be 
indented the same as the block opening tag.</p>

<p><strong>This should be the third paragraph after the header.</strong></p>

</div>
</div>

<h2>Code block with rogue <code>&lt;/div&gt;</code>s in Markdown code span and block</h2>

<div>
    <div>

<p>This is a code block however:</p>

<pre><code>&lt;/div&gt;
</code></pre>

<p>Funny isn't it? Here is a code span: <code>&lt;/div&gt;</code>.</p>

</div>
</div>

<div>
  <div>

<ul>
<li>List item, not a code block</li>
</ul>

<p>Some text</p>

<pre><code>This is a code block.
</code></pre>

</div>
</div>

<h2>No code block in markdown span mode</h2>

<p>
    This is not a code block since Markdown parse paragraph 
    content as span. Code spans like <code>&lt;/p&gt;</code> are allowed though.
</p>

<p><em>Hello</em> <em>world</em></p>

<p class="poem">
line 1<br />
line 2<br />
line 3
</p>

<h2>Preserving attributes and tags on more than one line:</h2>

<p class="test" 
id="12">
Some <em>span</em> content.
</p>

<h2>Header confusion bug</h2>

<table class="canvas">
<tr>
<td id="main">Hello World!
============

Hello World!</td>
</tr>
</table>