From e2c9664b0d63ec686f9e4625ac11bb21720f74dc Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 14 Jul 2022 15:01:03 +0200 Subject: Fix a bunch of container things * Fix a lot of container code * Fix to prevent code (indented) from interrupting a lazy container * Fix compiling when combining tight paragraphs, empty list items, and html * Fix list items starting w/ blank lines causing loose lists * Fix crash when looking for a previous blank line --- tests/code_indented.rs | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) (limited to 'tests/code_indented.rs') diff --git a/tests/code_indented.rs b/tests/code_indented.rs index 1df8e28..6735954 100644 --- a/tests/code_indented.rs +++ b/tests/code_indented.rs @@ -81,26 +81,23 @@ fn code_indented() { "should not support lazyness (1)" ); - // To do: container interrupt. - // assert_eq!( - // micromark("> a\n b"), - // "
\n

a\nb

\n
", - // "should not support lazyness (2)" - // ); + assert_eq!( + micromark("> a\n b"), + "
\n

a\nb

\n
", + "should not support lazyness (2)" + ); - // To do: container interrupt. - // assert_eq!( - // micromark("> a\n b"), - // "
\n

a\nb

\n
", - // "should not support lazyness (3)" - // ); + assert_eq!( + micromark("> a\n b"), + "
\n

a\nb

\n
", + "should not support lazyness (3)" + ); - // To do: container interrupt. - // assert_eq!( - // micromark("> a\n b"), - // "
\n

a\nb

\n
", - // "should not support lazyness (4)" - // ); + assert_eq!( + micromark("> a\n b"), + "
\n

a\nb

\n
", + "should not support lazyness (4)" + ); assert_eq!( micromark("> a\n b"), -- cgit