aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fuzz.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-28 18:30:46 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-28 18:30:46 +0200
commit5d5e94567e7a87a3cefdda410e3bd9e36e26eca5 (patch)
treed68dbac9cd49c10f8460f46f8c9ab9b25019973c /tests/fuzz.rs
parente485745c6924e41f2896f579b5454cfb800e13f6 (diff)
downloadmarkdown-rs-5d5e94567e7a87a3cefdda410e3bd9e36e26eca5.tar.gz
markdown-rs-5d5e94567e7a87a3cefdda410e3bd9e36e26eca5.tar.bz2
markdown-rs-5d5e94567e7a87a3cefdda410e3bd9e36e26eca5.zip
Fix GFM autolink literals that end in in GFM table pipes
Closes GH-20. Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com>
Diffstat (limited to '')
-rw-r--r--tests/fuzz.rs6
1 files changed, 6 insertions, 0 deletions
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("<table>\n<thead>\n<tr>\n<th>a</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"http://www.a\">www.a</a></td>\n</tr>\n</tbody>\n</table>".into()),
+ "9: autolink literals that end in table cell delimiter (GH-20)"
+ );
+
Ok(())
}