mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 03:03:44 +08:00
64 lines
724 B
HTML
64 lines
724 B
HTML
|
<!--
|
||
|
Changed for Discourse:
|
||
|
|
||
|
- It removes id and classes.
|
||
|
-->
|
||
|
<p>Here's a simple block:</p>
|
||
|
|
||
|
<div>
|
||
|
foo
|
||
|
</div>
|
||
|
|
||
|
<p>This should be a code block, though:</p>
|
||
|
|
||
|
<pre><code><div>
|
||
|
foo
|
||
|
</div>
|
||
|
</code></pre>
|
||
|
|
||
|
<p>As should this:</p>
|
||
|
|
||
|
<pre><code><div>foo</div>
|
||
|
</code></pre>
|
||
|
|
||
|
<p>Now, nested:</p>
|
||
|
|
||
|
<div>
|
||
|
<div>
|
||
|
<div>
|
||
|
foo
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<p>This should just be an HTML comment:</p>
|
||
|
|
||
|
<!-- Comment -->
|
||
|
|
||
|
<p>Multiline:</p>
|
||
|
|
||
|
<!--
|
||
|
Blah
|
||
|
Blah
|
||
|
-->
|
||
|
|
||
|
<p>Code block:</p>
|
||
|
|
||
|
<pre><code><!-- Comment -->
|
||
|
</code></pre>
|
||
|
|
||
|
<p>Just plain comment, with trailing spaces on the line:</p>
|
||
|
|
||
|
<!-- foo -->
|
||
|
|
||
|
<p>Code:</p>
|
||
|
|
||
|
<pre><code><hr />
|
||
|
</code></pre>
|
||
|
|
||
|
<p>Hr's:</p>
|
||
|
|
||
|
<hr>
|
||
|
|
||
|
<hr>
|