aboutsummaryrefslogtreecommitdiffstats
path: root/renderer/src/html
diff options
context:
space:
mode:
authorPhilipp A2020-11-01 16:46:16 +0100
committerGitHub2020-11-01 16:46:16 +0100
commit44e9d2b79f307d9b741a606d5acd2fe6166efa5f (patch)
tree0ae04d6262c74081ac3a1a9d4259a8db156d7d89 /renderer/src/html
parent89d123ec6586b9d0e48c2f99f11575b254b46e72 (diff)
downloadrust-rst-44e9d2b79f307d9b741a606d5acd2fe6166efa5f.tar.bz2
Implement literal blocks (#28)
Diffstat (limited to 'renderer/src/html')
-rw-r--r--renderer/src/html/tests.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/renderer/src/html/tests.rs b/renderer/src/html/tests.rs
index 6387238..a4ec633 100644
--- a/renderer/src/html/tests.rs
+++ b/renderer/src/html/tests.rs
@@ -100,8 +100,13 @@ hello ``foo.map(|world| world + 42)``
.. code::
foo.map(|world| world + 42)
+
+::
+
+ hay! |x|
", "<p>hello <code>foo.map(|world| world + 42)</code></p>
-<pre>foo.map(|world| world + 42)\n</pre>");
+<pre><code>foo.map(|world| world + 42)\n</code></pre>
+<pre>hay! |x|\n</pre>");
}
/*
@@ -305,11 +310,11 @@ fn code() {
# comment
", "\
-<pre class=\"python\">def foo():
+<pre><code class=\"language-python\">def foo():
print('Hi!')
# comment
-</pre>\
+</code></pre>\
");
}