From 4f776347163a514abadc7ded95e66a459be03bc9 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Sat, 29 Oct 2022 14:03:59 +0200 Subject: Fix GFM task list checkboxes followed by eol Closes GH-24. --- tests/fuzz.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/fuzz.rs') diff --git a/tests/fuzz.rs b/tests/fuzz.rs index d1a87b7..297e6a9 100644 --- a/tests/fuzz.rs +++ b/tests/fuzz.rs @@ -109,5 +109,13 @@ fn fuzz() -> Result<(), String> { "10: attention in different links (GH-21)" ); + assert!( + matches!( + to_mdast("* [ ]\na", &Default::default()), + Ok(mdast::Node::Root(_)) + ), + "11: gfm task list items followed by eols (GH-24)" + ); + Ok(()) } -- cgit