diff options
| author | Philipp A | 2020-11-01 16:46:16 +0100 | 
|---|---|---|
| committer | GitHub | 2020-11-01 16:46:16 +0100 | 
| commit | 44e9d2b79f307d9b741a606d5acd2fe6166efa5f (patch) | |
| tree | 0ae04d6262c74081ac3a1a9d4259a8db156d7d89 /renderer/src/html/tests.rs | |
| parent | 89d123ec6586b9d0e48c2f99f11575b254b46e72 (diff) | |
| download | rust-rst-44e9d2b79f307d9b741a606d5acd2fe6166efa5f.tar.bz2 | |
Implement literal blocks (#28)
Diffstat (limited to 'renderer/src/html/tests.rs')
| -rw-r--r-- | renderer/src/html/tests.rs | 11 | 
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>\  ");  } | 
