Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,24 @@ fn test_wrap_footnote_with_inline_code() {
common::assert_wrapped_list_item(&output, " [^code_note]: ", 2);
}

/// Tests that footnotes with angle-bracketed URLs are wrapped correctly.
///
/// Verifies that when a footnote line contains a URL enclosed in angle brackets,
/// the URL is moved to a new indented line beneath the footnote text.
#[test]
fn test_wrap_angle_bracket_url() {
let input = lines_vec![concat!(
"[^5]: Given When Then - Martin Fowler, accessed on 14 July 2025, ",
"<https://martinfowler.com/bliki/GivenWhenThen.html>"
)];
let expected = lines_vec![
"[^5]: Given When Then - Martin Fowler, accessed on 14 July 2025,",
" <https://martinfowler.com/bliki/GivenWhenThen.html>",
];
let output = process_stream(&input);
assert_eq!(output, expected);
}
Comment thread
leynos marked this conversation as resolved.

/// Checks that a sequence of footnotes is not altered by wrapping.
///
/// This regression test ensures that the footnote collection remains
Expand Down