aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--renderer/src/html/tests.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/renderer/src/html/tests.rs b/renderer/src/html/tests.rs
index 26c9e72..afd2d24 100644
--- a/renderer/src/html/tests.rs
+++ b/renderer/src/html/tests.rs
@@ -90,6 +90,20 @@ A |subst|.
", "<p>A text substitution.</p>");
}
+#[test]
+fn not_substitution_literal() {
+ check_renders_to("\
+hello ``foo.map(|world| world + 42)``
+
+.. |world| replace:: something different
+
+.. code::
+
+ foo.map(|world| world + 42)
+", "<p>hello <code>foo.map(|world| world + 42)</code></p>
+<pre>foo.map(|world| world + 42)\n</pre>");
+}
+
/*
#[test]
fn test_section_hierarchy() {