diff options
Diffstat (limited to 'tests')
-rw-r--r--tests/extensions/test-about-render.lua9
1 file changed, 9 insertions, 0 deletions
diff --git a/tests/extensions/test-about-render.lua b/tests/extensions/test-about-render.lua
index 601d0dc..236c61a 100644
--- a/tests/extensions/test-about-render.lua
+++ b/tests/extensions/test-about-render.lua
@@ -108,6 +108,15 @@ out = render("README.md", "an __up__ and _down_ word")
h.contains("double underscores embolden", out, "<strong>up</strong>")
h.contains("single underscores lean", out, "<em>down</em>")
+out = render("README.md", "\\*not leaning\\* and \\# and \\q")
+h.contains("a backslash makes punctuation literal", out, "<p>*not leaning* and # and \\q</p>")
+
+out = render("README.md", "\\# not a heading")
+h.contains("an escaped hash starts no heading", out, "<p># not a heading</p>")
+
+out = render("README.md", "`a\\*b`")
+h.contains("code keeps its backslashes", out, "<code>a\\*b</code>")
+
out = render("README.md", "run `x < y` here")
h.contains("inline code is escaped", out, "<code>x &lt; y</code>")