Implement the new fields for broken end bullshitium.

This commit is contained in:
Tom Alexander 2023-12-15 15:40:17 -05:00
parent fce5b92091
commit 7b88a2d248
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 7 additions and 3 deletions

View File

@ -73,14 +73,18 @@ pub(crate) fn broken_end<'b, 'g, 'r, 's>(
};
Ok((remaining, paragraph))
} else {
let (remaining, _trailing_ws) =
let (remaining, post_blank) =
maybe_consume_trailing_whitespace_if_not_exiting(context, lead_in_remaining)?;
let body = Into::<&str>::into(input.get_until(lead_in_remaining));
Ok((
remaining,
Paragraph::of_text(
Paragraph::of_text_full(
input.get_until(remaining).into(),
input.get_until(lead_in_remaining).into(),
body,
if body.len() > 0 { Some(body) } else { None },
post_blank.map(Into::<&str>::into),
),
))
}