Skip to content

Commit

Permalink
test: two setext headings next to each other
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianMurphy committed Nov 25, 2022
1 parent af96212 commit 7853d68
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,13 @@ fn fuzz() -> Result<(), String> {
"11: gfm task list items followed by eols (GH-24)"
);

assert!(
matches!(
to_mdast("=\n=\n=\na\n=", &Default::default()),
Ok(mdast::Node::Root(_))
),
"yy: setext headings next to each other (GH-31)"
);

Ok(())
}

0 comments on commit 7853d68

Please sign in to comment.