From ad8eac98c1468b30c17c339e79b84c37a7b15517 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 13 Jul 2022 10:40:11 +0200 Subject: Fix to close containers before several (blank) line endings --- tests/code_fenced.rs | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'tests/code_fenced.rs') diff --git a/tests/code_fenced.rs b/tests/code_fenced.rs index b7bfd79..fa9ed5f 100644 --- a/tests/code_fenced.rs +++ b/tests/code_fenced.rs @@ -57,12 +57,11 @@ fn code_fenced() { "should support an eof somewhere in content" ); - // To do: container exits before (blank) line endings. - // assert_eq!( - // micromark("> ```\n> aaa\n\nbbb"), - // "
\n
aaa\n
\n
\n

bbb

", - // "should support no closing sequence in a block quote" - // ); + assert_eq!( + micromark("> ```\n> aaa\n\nbbb"), + "
\n
aaa\n
\n
\n

bbb

", + "should support no closing sequence in a block quote" + ); assert_eq!( micromark("```\n\n \n```"), @@ -227,12 +226,11 @@ fn code_fenced() { "should not support a closing sequence w/ too much indent, regardless of opening sequence (1)" ); - // To do: container exits before (blank) line endings. - // assert_eq!( - // micromark("> ```\n>\n>\n>\n\na"), - // "
\n
\n\n\n
\n
\n

a

", - // "should not support a closing sequence w/ too much indent, regardless of opening sequence (2)" - // ); + assert_eq!( + micromark("> ```\n>\n>\n>\n\na"), + "
\n
\n\n\n
\n
\n

a

", + "should not support a closing sequence w/ too much indent, regardless of opening sequence (2)" + ); assert_eq!( micromark("> ```a\nb"), -- cgit