Skip to content

Commit

Permalink
test: add alternate example of issue, without definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianMurphy committed Aug 15, 2023
1 parent 36a7aa1 commit 9f237ed
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,24 @@ fn fuzz() -> Result<(), String> {
),
Ok("<p>&lt;</p>".to_string()),
"12: mdx: handle invalid mdx without panic (GH-26)"
)

assert_eq!(
to_html("[:]:a\n-\na\n-"),
"<h2>-\na</h2>",
"10: handle link in heading"
)

assert_eq!(
to_html("[:]:a\n-\na\n-"),
"<h2>-\na</h2>",
"xx: handle link in heading (GH-22)"
);

assert_eq!(
to_html("a\n-\n--\na\n-"),
"<h2>a</h2>\n<h2>--\na</h2>",
"xx: two setext headings next to each other (GH-22)"
);

Ok(())
Expand Down

0 comments on commit 9f237ed

Please sign in to comment.