From 49b6a4e72516e8b2a8768e761a60a4f461802d69 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 22 Aug 2022 17:32:40 +0200 Subject: Fix lazy paragraph after definition --- 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 5c72fb9..be9da40 100644 --- a/tests/block_quote.rs +++ b/tests/block_quote.rs @@ -88,6 +88,18 @@ fn block_quote() { "should not support lazy indented code (or lazy list) in block quotes" ); + assert_eq!( + micromark("> [\na"), + "
\n

[\na

\n
", + "should support lazy, definition-like lines" + ); + + assert_eq!( + micromark("> [a]: b\nc"), + "
\n

c

\n
", + "should support a definition, followed by a lazy paragraph" + ); + assert_eq!( micromark(">"), "
\n
", -- cgit