From ccf6775c848ba798c011654905269e3300e0079a Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 26 Oct 2022 11:00:57 +0200 Subject: Fix container close after unclosed fenced code, w/ eol Closes GH-16 Co-authored-by: Christian Murphy --- tests/fuzz.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests') diff --git a/tests/fuzz.rs b/tests/fuzz.rs index bb63035..72f365e 100644 --- a/tests/fuzz.rs +++ b/tests/fuzz.rs @@ -56,5 +56,17 @@ fn fuzz() -> Result<(), String> { "5: lists should support high start numbers (GH-17)" ); + assert_eq!( + to_html("> ```\n"), + "
\n
\n
\n
", + "6-a: container close after unclosed fenced code, with eol (block quote, GH-16)" + ); + + assert_eq!( + to_html("- ```\n"), + "", + "6-b: container close after unclosed fenced code, with eol (list, GH-16)" + ); + Ok(()) } -- cgit