aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/code_fenced.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/code_fenced.rs b/tests/code_fenced.rs
index f251952..99f729e 100644
--- a/tests/code_fenced.rs
+++ b/tests/code_fenced.rs
@@ -221,6 +221,12 @@ fn code_fenced() {
);
assert_eq!(
+ micromark("```a\\&b\0c"),
+ "<pre><code class=\"language-a&amp;b�c\"></code></pre>\n",
+ "should encode dangerous characters in languages"
+ );
+
+ assert_eq!(
micromark(" ```\naaa\n ```"),
"<pre><code>aaa\n ```\n</code></pre>\n",
"should not support a closing sequence w/ too much indent, regardless of opening sequence (1)"