From 5d5e94567e7a87a3cefdda410e3bd9e36e26eca5 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 28 Oct 2022 18:30:46 +0200 Subject: Fix GFM autolink literals that end in in GFM table pipes Closes GH-20. Co-authored-by: Christian Murphy --- tests/fuzz.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/fuzz.rs b/tests/fuzz.rs index 54b4f40..522e32f 100644 --- a/tests/fuzz.rs +++ b/tests/fuzz.rs @@ -98,5 +98,11 @@ fn fuzz() -> Result<(), String> { "8-d: autolink literals after tabs (GH-18)" ); + assert_eq!( + to_html_with_options("| a |\n| - |\n| www.a|", &Options::gfm()), + Ok("\n\n\n\n\n\n\n\n\n\n\n
a
www.a
".into()), + "9: autolink literals that end in table cell delimiter (GH-20)" + ); + Ok(()) } -- cgit