From 3e4ff94f5842a9383c3a3710b885f1cd3cbf2c07 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 8 Jul 2022 17:50:58 +0200 Subject: Fix interrupting when exiting containers --- src/content/document.rs | 3 +++ tests/html_flow.rs | 11 +++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/content/document.rs b/src/content/document.rs index 8ce1dc3..0c95eed 100644 --- a/src/content/document.rs +++ b/src/content/document.rs @@ -299,6 +299,9 @@ fn exit_containers( info.next = Box::new(flow); // This is weird but Rust needs a function there. assert!(matches!(result.0, State::Ok)); assert!(result.1.is_none()); + + println!(" setting `interrupt: false`"); + tokenizer.interrupt = false; } while info.stack.len() > size { diff --git a/tests/html_flow.rs b/tests/html_flow.rs index 757f2f3..6dfceb5 100644 --- a/tests/html_flow.rs +++ b/tests/html_flow.rs @@ -1018,10 +1018,9 @@ fn html_flow_7_complete() { "should not support lazyness (1)" ); - // To do: blockquote (lazy). - // assert_eq!( - // micromark_with_options("> a\n", DANGER), - // "
\n

a

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

a

\n
\n
", + "should not support lazyness (2)" + ); } -- cgit