| 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><div> |
| 10 |
foo |
| 11 |
</div> |
| 12 |
</code></pre> |
| 13 |
|
| 14 |
<p>As should this:</p> |
| 15 |
|
| 16 |
<pre><code><div>foo</div> |
| 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 |
<!-- |
| 36 |
Blah |
| 37 |
Blah |
| 38 |
--> |
| 39 |
|
| 40 |
<p>Code block:</p> |
| 41 |
|
| 42 |
<pre><code><!-- Comment --> |
| 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><hr /> |
| 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" > |