Skip to content

Commit 057547e

Browse files
authored
Merge pull request #74 from dyoo/fixing-wording
Fix wording of test since the behavior is technically not a Markdown bug
2 parents 3a6ed6a + 17ef637 commit 057547e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/lib.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,16 +1187,15 @@ But *this* should!",
11871187
}
11881188

11891189
#[test]
1190-
fn extract_messages_skipping_inline_second_item_buggy() {
1190+
fn extract_messages_skipping_inline_second_item() {
11911191
// This isn't great: we lose text following a HTML comment.
11921192
// Very similar to the failure mode of the
11931193
// `extract_messages_details` test.
11941194
//
1195-
// The root cause appears to be a bug in the Markdown parser
1196-
// because it's not separating HTML element from text that
1197-
// immediately follows it.
1198-
//
1199-
// Related: https://github.com/raphlinus/pulldown-cmark/issues/712
1195+
// The root cause is due to the Markdown spec and how the
1196+
// Markdown parser treats HTML blocks. The text that
1197+
// immediately follows an HTML block on the same line is
1198+
// included as part of the HTML block.
12001199
assert_extract_messages(
12011200
"
12021201
* A

0 commit comments

Comments
 (0)