From 36a7aa10e13d7a0e803f209f6551f17d48b7ea2e Mon Sep 17 00:00:00 2001 From: Christian Murphy Date: Wed, 26 Oct 2022 06:53:12 -0700 Subject: [PATCH 1/2] test: link in heading --- tests/fuzz.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/fuzz.rs b/tests/fuzz.rs index 4778cbb8..f563ad63 100644 --- a/tests/fuzz.rs +++ b/tests/fuzz.rs @@ -127,6 +127,9 @@ fn fuzz() -> Result<(), String> { ), Ok("

<

".to_string()), "12: mdx: handle invalid mdx without panic (GH-26)" + to_html("[:]:a\n-\na\n-"), + "

-\na

", + "10: handle link in heading" ); Ok(()) From 9842328403490484aaf51f8f1a4bbb67963cadd3 Mon Sep 17 00:00:00 2001 From: Christian Murphy Date: Fri, 25 Nov 2022 11:32:29 -0700 Subject: [PATCH 2/2] test: add alternate example of issue, without definition --- tests/fuzz.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/fuzz.rs b/tests/fuzz.rs index f563ad63..662522c0 100644 --- a/tests/fuzz.rs +++ b/tests/fuzz.rs @@ -127,9 +127,18 @@ fn fuzz() -> Result<(), String> { ), Ok("

<

".to_string()), "12: mdx: handle invalid mdx without panic (GH-26)" + ); + + assert_eq!( to_html("[:]:a\n-\na\n-"), "

-\na

", - "10: handle link in heading" + "xx: handle link in heading (GH-22)" + ); + + assert_eq!( + to_html("a\n-\n--\na\n-"), + "

a

\n

--\na

", + "xx: two setext headings next to each other (GH-22)" ); Ok(())