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 ++++++++++++ tests/gfm_task_list_item.rs | 6 ++++++ tests/list.rs | 12 ++++++++++++ 3 files changed, 30 insertions(+) (limited to 'tests') 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
", diff --git a/tests/gfm_task_list_item.rs b/tests/gfm_task_list_item.rs index 5db5d1b..66b646f 100644 --- a/tests/gfm_task_list_item.rs +++ b/tests/gfm_task_list_item.rs @@ -70,6 +70,9 @@ fn gfm_task_list_item() { + [X] With an upper case `x` +* [ +] In a lazy line + - [ ] With two spaces + [x] Two spaces indent @@ -163,6 +166,9 @@ EOL after:
  • With an upper case x
  • +