all repos — grayfriday @ 3a1d5152426fb4f166bab351213c0249d4fd3f61

blackfriday fork with a few changes

testdata/Inline HTML (Simple).html (view raw)

 1<p>Here's a simple block:</p>
 2
 3<div>
 4	foo
 5</div>
 6
 7<p>This should be a code block, though:</p>
 8
 9<pre><code>&lt;div&gt;
10	foo
11&lt;/div&gt;
12</code></pre>
13
14<p>As should this:</p>
15
16<pre><code>&lt;div&gt;foo&lt;/div&gt;
17</code></pre>
18
19<p>Now, nested:</p>
20
21<div>
22	<div>
23		<div>
24			foo
25		</div>
26	</div>
27</div>
28
29<p>This should just be an HTML comment:</p>
30
31<!-- Comment -->
32
33<p>Multiline:</p>
34
35<!--
36Blah
37Blah
38-->
39
40<p>Code block:</p>
41
42<pre><code>&lt;!-- Comment --&gt;
43</code></pre>
44
45<p>Just plain comment, with trailing spaces on the line:</p>
46
47<!-- foo -->   
48
49<p>Code:</p>
50
51<pre><code>&lt;hr /&gt;
52</code></pre>
53
54<p>Hr's:</p>
55
56<hr>
57
58<hr/>
59
60<hr />
61
62<hr>   
63
64<hr/>  
65
66<hr /> 
67
68<hr class="foo" id="bar" />
69
70<hr class="foo" id="bar"/>
71
72<hr class="foo" id="bar" >