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 Aug 15, 2023
1 parent 56cd834 commit 56e8efb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/unicode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/// List of characters that are considered punctuation.
///
/// > 👉 **Important**: this module is generated by `generate/src/main.rs`.
/// > 👉 **Important**: this module is generated by `build.rs`.
/// > It is generate from the latest Unicode data.
///
/// Rust does not contain an `is_punctuation` method on `char`, while it does
Expand Down
8 changes: 8 additions & 0 deletions tests/fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,13 @@ fn fuzz() -> Result<(), String> {
"12: mdx: handle invalid mdx without panic (GH-26)"
);

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 56e8efb

Please sign in to comment.