Skip to content

Commit

Permalink
test: link in heading
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianMurphy committed Oct 26, 2022
1 parent e139a80 commit a698bc5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,11 @@ fn fuzz() -> Result<(), String> {
"8-d: autolink literals after tabs (GH-18)"
);

assert_eq!(
to_html("[:]: ]: \n-\n-[:]: ]: \n-\n-a"),
"<h2>-\n-<a href=\"%5D:\">:</a>: ]:</h2>\n<p>-a</p>",
"9: handle link in heading"
);

Ok(())
}

0 comments on commit a698bc5

Please sign in to comment.