Skip to content

Commit 23e4a91

Browse files
test: two setext headings next to each other
1 parent 56cd834 commit 23e4a91

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/util/unicode.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
/// List of characters that are considered punctuation.
44
///
5-
/// > 👉 **Important**: this module is generated by `generate/src/main.rs`.
5+
/// > 👉 **Important**: this module is generated by `build.rs`.
66
/// > It is generate from the latest Unicode data.
77
///
88
/// Rust does not contain an `is_punctuation` method on `char`, while it does

tests/fuzz.rs

+8
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,13 @@ fn fuzz() -> Result<(), String> {
129129
"12: mdx: handle invalid mdx without panic (GH-26)"
130130
);
131131

132+
assert!(
133+
matches!(
134+
to_mdast("=\n=\n=\na\n=", &Default::default()),
135+
Ok(mdast::Node::Root(_))
136+
),
137+
"yy: setext headings next to each other (GH-31)"
138+
);
139+
132140
Ok(())
133141
}

0 commit comments

Comments
 (0)