mdbook/tests/testsuite/markdown/basic_markdown/expected/code-blocks.html
Eric Huss 03443f723c Add more comprehensive tests for HTML rendering
This adds a bunch of tests to better exercise the HTML rendering and to
be able to track any changes in its behavior.

This includes a new `check_all_main_files` to more conveniently check
the HTML content of every chapter in a book.
2025-09-16 14:07:54 -07:00

22 lines
No EOL
897 B
HTML

<h1 id="code-blocks"><a class="header" href="#code-blocks">Code blocks</a></h1>
<pre><code>This is a codeblock
</code></pre>
<pre><pre class="playground"><code class="language-rust"><span class="boring">#![allow(unused)]
</span><span class="boring">fn main() {
</span>// This links to a playpen
<span class="boring">}</span></code></pre></pre>
<pre><code class="language-bash editable"># This is an editable codeblock
</code></pre>
<pre><code class="language-text cls1 cls2 cls3">Text with different classes.
</code></pre>
<pre><code>Indented
code
block.
</code></pre>
<pre><pre class="playground"><code class="language-rust edition2021"><span class="boring">#![allow(unused)]
</span><span class="boring">fn main() {
</span>let x = 1;
<span class="boring">}</span></code></pre></pre>
<pre><pre class="playground"><code class="language-rust">fn main() {
println!("hello");
}</code></pre></pre>