]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix code block example
authorPatrick H. Lauke <redux@splintered.co.uk>
Fri, 25 Dec 2015 13:49:16 +0000 (13:49 +0000)
committerPatrick H. Lauke <redux@splintered.co.uk>
Fri, 25 Dec 2015 13:49:16 +0000 (13:49 +0000)
use `<code>` (as it's still semantically code that we're marking up) and
make the example actually multiple lines...

docs/content/code.md

index 43779ebb259cbb6e32f5d500e539c1a10d63660e..f9046c7e4890c516bbbf2def0677dced662d994b 100644 (file)
@@ -24,7 +24,9 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
 Or, code blocks. Use `<pre>`s for multiple lines of code. Once again, be sure to escape any angle brackets in the code for proper rendering. You may optionally add the `.pre-scrollable` class, which will set a max-height of 350px and provide a y-axis scrollbar.
 
 {% example html %}
-<pre>&lt;p&gt;Sample text here...&lt;/p&gt;</pre>
+<pre><code>&lt;p&gt;Sample text here...&lt;/p&gt;
+&lt;p&gt;And another line of sample text here...&lt;/p&gt;
+</code></pre>
 {% endexample %}
 
 ## Variables