Implement the new fields for broken end bullshitium.
This commit is contained in:
parent
fce5b92091
commit
7b88a2d248
@ -73,14 +73,18 @@ pub(crate) fn broken_end<'b, 'g, 'r, 's>(
|
|||||||
};
|
};
|
||||||
Ok((remaining, paragraph))
|
Ok((remaining, paragraph))
|
||||||
} else {
|
} else {
|
||||||
let (remaining, _trailing_ws) =
|
let (remaining, post_blank) =
|
||||||
maybe_consume_trailing_whitespace_if_not_exiting(context, lead_in_remaining)?;
|
maybe_consume_trailing_whitespace_if_not_exiting(context, lead_in_remaining)?;
|
||||||
|
|
||||||
|
let body = Into::<&str>::into(input.get_until(lead_in_remaining));
|
||||||
|
|
||||||
Ok((
|
Ok((
|
||||||
remaining,
|
remaining,
|
||||||
Paragraph::of_text(
|
Paragraph::of_text_full(
|
||||||
input.get_until(remaining).into(),
|
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),
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user