diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-07-08 17:50:58 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-07-08 17:50:58 +0200 |
commit | 3e4ff94f5842a9383c3a3710b885f1cd3cbf2c07 (patch) | |
tree | 286e2eddbb748be58bb9e32dbc5668c826a94356 | |
parent | 59c4ec0fb54c9263ac3a127d2b1c4fd7f0d490d6 (diff) | |
download | markdown-rs-3e4ff94f5842a9383c3a3710b885f1cd3cbf2c07.tar.gz markdown-rs-3e4ff94f5842a9383c3a3710b885f1cd3cbf2c07.tar.bz2 markdown-rs-3e4ff94f5842a9383c3a3710b885f1cd3cbf2c07.zip |
Fix interrupting when exiting containers
-rw-r--r-- | src/content/document.rs | 3 | ||||
-rw-r--r-- | 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<a>", DANGER), - // "<blockquote>\n<p>a</p>\n</blockquote>\n<a>", - // "should not support lazyness (2)" - // ); + assert_eq!( + micromark_with_options("> a\n<a>", DANGER), + "<blockquote>\n<p>a</p>\n</blockquote>\n<a>", + "should not support lazyness (2)" + ); } |