aboutsummaryrefslogtreecommitdiffstats
path: root/tests/block_quote.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/block_quote.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/block_quote.rs b/tests/block_quote.rs
index 70a6aeb..2f69bf5 100644
--- a/tests/block_quote.rs
+++ b/tests/block_quote.rs
@@ -124,6 +124,18 @@ fn block_quote() {
);
assert_eq!(
+ micromark("[a]\n\n> [a]: b"),
+ "<p><a href=\"b\">a</a></p>\n<blockquote>\n</blockquote>",
+ "should support a definition in a block quote (1)"
+ );
+
+ assert_eq!(
+ micromark("> [a]: b\n\n[a]"),
+ "<blockquote>\n</blockquote>\n<p><a href=\"b\">a</a></p>",
+ "should support a definition in a block quote (2)"
+ );
+
+ assert_eq!(
micromark("a\n> b"),
"<p>a</p>\n<blockquote>\n<p>b</p>\n</blockquote>",
"should support interrupting paragraphs w/ block quotes"