Skip to content

Commit a698bc5

Browse files
test: link in heading
1 parent e139a80 commit a698bc5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/fuzz.rs

+6
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,11 @@ fn fuzz() -> Result<(), String> {
9898
"8-d: autolink literals after tabs (GH-18)"
9999
);
100100

101+
assert_eq!(
102+
to_html("[:]: ]: \n-\n-[:]: ]: \n-\n-a"),
103+
"<h2>-\n-<a href=\"%5D:\">:</a>: ]:</h2>\n<p>-a</p>",
104+
"9: handle link in heading"
105+
);
106+
101107
Ok(())
102108
}

0 commit comments

Comments
 (0)