diff --git a/tests/fuzz.rs b/tests/fuzz.rs index 4778cbb8..662522c0 100644 --- a/tests/fuzz.rs +++ b/tests/fuzz.rs @@ -129,5 +129,17 @@ fn fuzz() -> Result<(), String> { "12: mdx: handle invalid mdx without panic (GH-26)" ); + assert_eq!( + to_html("[:]:a\n-\na\n-"), + "

-\na

", + "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(()) }