diff --git a/tests/fuzz.rs b/tests/fuzz.rs index 297e6a96..e976d621 100644 --- a/tests/fuzz.rs +++ b/tests/fuzz.rs @@ -117,5 +117,18 @@ fn fuzz() -> Result<(), String> { "11: gfm task list items followed by eols (GH-24)" ); + assert_eq!( + markdown::to_html_with_options( + "<", + &markdown::Options { + parse: markdown::ParseOptions::mdx(), + ..Default::default() + } + ) + .ok(), + None, + "zz: mdx: handle invalid mdx without panic" + ); + Ok(()) }