diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-10-26 11:00:57 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-10-26 11:00:57 +0200 |
commit | ccf6775c848ba798c011654905269e3300e0079a (patch) | |
tree | a58f1fb2b060c14364328f981f50b1ab9ed3abf2 /tests/fuzz.rs | |
parent | bfe2f86e99b5528c636cc4002ce10e9af06de0c0 (diff) | |
download | markdown-rs-ccf6775c848ba798c011654905269e3300e0079a.tar.gz markdown-rs-ccf6775c848ba798c011654905269e3300e0079a.tar.bz2 markdown-rs-ccf6775c848ba798c011654905269e3300e0079a.zip |
Fix container close after unclosed fenced code, w/ eol
Closes GH-16
Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | tests/fuzz.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/fuzz.rs b/tests/fuzz.rs index bb63035..72f365e 100644 --- a/tests/fuzz.rs +++ b/tests/fuzz.rs @@ -56,5 +56,17 @@ fn fuzz() -> Result<(), String> { "5: lists should support high start numbers (GH-17)" ); + assert_eq!( + to_html("> ```\n"), + "<blockquote>\n<pre><code>\n</code></pre>\n</blockquote>", + "6-a: container close after unclosed fenced code, with eol (block quote, GH-16)" + ); + + assert_eq!( + to_html("- ```\n"), + "<ul>\n<li>\n<pre><code>\n</code></pre>\n</li>\n</ul>", + "6-b: container close after unclosed fenced code, with eol (list, GH-16)" + ); + Ok(()) } |