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