Debian Codegraph @

t/docs-php-markdown-extra/Inline_HTML_with_Markdown_content.html

raw
1 <h1>Markdown inside code blocks</h1>
2
3 <div>
4
5 <p>foo</p>
6
7 </div>
8
9 <div>
10
11 <p>foo</p>
12
13 </div>
14
15 <div>
16
17 <p>foo</p>
18
19 </div>
20
21 <table>
22 <tr><td>test <em>emphasis</em> (span)</td></tr>
23 </table>
24
25 <table>
26 <tr><td>test <em>emphasis</em> (span)</td></tr>
27 </table>
28
29 <table>
30 <tr><td>
31
32 <p>test <em>emphasis</em> (block)</p>
33
34 </td></tr>
35 </table>
36
37 <h2>More complicated</h2>
38
39 <table>
40 <tr><td>
41 * this is <em>not</em> a list item</td></tr>
42 <tr><td>
43 * this is <em>not</em> a list item</td></tr>
44 <tr><td>
45
46 <ul>
47 <li>this <em>is</em> a list item</li>
48 </ul>
49
50 </td></tr>
51 </table>
52
53 <h2>With indent</h2>
54
55 <div>
56 <div>
57
58 <p>This text is no code block: if it was, the
59 closing <code>&lt;div&gt;</code> would be too and the HTML block
60 would be invalid.</p>
61
62 <p>Markdown content in HTML blocks is assumed to be
63 indented the same as the block opening tag.</p>
64
65 <p><strong>This should be the third paragraph after the header.</strong></p>
66
67 </div>
68 </div>
69
70 <h2>Code block with rogue <code>&lt;/div&gt;</code>s in Markdown code span and block</h2>
71
72 <div>
73 <div>
74
75 <p>This is a code block however:</p>
76
77 <pre><code>&lt;/div&gt;
78 </code></pre>
79
80 <p>Funny isn't it? Here is a code span: <code>&lt;/div&gt;</code>.</p>
81
82 </div>
83 </div>
84
85 <div>
86 <div>
87
88 <ul>
89 <li>List item, not a code block</li>
90 </ul>
91
92 <p>Some text</p>
93
94 <pre><code>This is a code block.
95 </code></pre>
96
97 </div>
98 </div>
99
100 <h2>No code block in markdown span mode</h2>
101
102 <p>
103 This is not a code block since Markdown parse paragraph
104 content as span. Code spans like <code>&lt;/p&gt;</code> are allowed though.
105 </p>
106
107 <p><em>Hello</em> <em>world</em></p>
108
109 <h2>Preserving attributes and tags on more than one line:</h2>
110
111 <p class="test"
112 id="12">
113 Some <em>span</em> content.
114 </p>
115
116 <h2>Header confusion bug</h2>
117
118 <table class="canvas">
119 <tr>
120 <td id="main">Hello World!
121 ============
122
123 Hello World!</td>
124 </tr>
125 </table>