Skip to content

Commit

Permalink
Merge pull request #74 from dyoo/fixing-wording
Browse files Browse the repository at this point in the history
Fix wording of test since the behavior is technically not a Markdown bug
  • Loading branch information
mgeisler authored Sep 9, 2023
2 parents 3a6ed6a + 17ef637 commit 057547e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1187,16 +1187,15 @@ But *this* should!",
}

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

0 comments on commit 057547e

Please sign in to comment.