aboutsummaryrefslogtreecommitdiffstats
path: root/tests/block_quote.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-09 10:49:23 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-09 10:49:23 +0200
commit17d83d974eeb4f1f7516cc9d1c72d76870a0e6d0 (patch)
treeaab63934bd783aeba2bd5e0f4b1cc720e1ea8ada /tests/block_quote.rs
parentd611ad3325f66eaf83464bbd5ef4de74c0623db9 (diff)
downloadmarkdown-rs-17d83d974eeb4f1f7516cc9d1c72d76870a0e6d0.tar.gz
markdown-rs-17d83d974eeb4f1f7516cc9d1c72d76870a0e6d0.tar.bz2
markdown-rs-17d83d974eeb4f1f7516cc9d1c72d76870a0e6d0.zip
Add another test for lazy fenced code and block quotes
Diffstat (limited to 'tests/block_quote.rs')
-rw-r--r--tests/block_quote.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/block_quote.rs b/tests/block_quote.rs
index 13af078..70a6aeb 100644
--- a/tests/block_quote.rs
+++ b/tests/block_quote.rs
@@ -72,7 +72,13 @@ fn block_quote() {
assert_eq!(
micromark("> ```\na\n```"),
"<blockquote>\n<pre><code></code></pre>\n</blockquote>\n<p>a</p>\n<pre><code></code></pre>\n",
- "should not support lazy fenced code in block quotes"
+ "should not support lazy fenced code in block quotes (1)"
+ );
+
+ assert_eq!(
+ micromark("> a\n```\nb"),
+ "<blockquote>\n<p>a</p>\n</blockquote>\n<pre><code>b\n</code></pre>\n",
+ "should not support lazy fenced code in block quotes (2)"
);
assert_eq!(