From fafcfd55e5f7ea8b87cab4bbf979730d81749402 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 9 Aug 2022 10:55:31 +0200 Subject: Add more tests for definitions and block quotes --- tests/block_quote.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/block_quote.rs') 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 @@ -123,6 +123,18 @@ fn block_quote() { "should support adjacent paragraphs in block quotes" ); + assert_eq!( + micromark("[a]\n\n> [a]: b"), + "

a

\n
\n
", + "should support a definition in a block quote (1)" + ); + + assert_eq!( + micromark("> [a]: b\n\n[a]"), + "
\n
\n

a

", + "should support a definition in a block quote (2)" + ); + assert_eq!( micromark("a\n> b"), "

a

\n
\n

b

\n
", -- cgit