Include the trailing space for the bolds.

This commit is contained in:
Tom Alexander 2023-07-14 18:32:16 -04:00
parent 7ca8beac5a
commit cdd3517655
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 3 additions and 3 deletions

View File

@ -185,9 +185,9 @@ mod tests {
.get(1)
.expect("Len already asserted to be 3"),
&Object::RadioLink(RadioLink {
source: "*bar*",
source: "*bar* ",
children: vec![Object::Bold(Bold {
source: "*bar*",
source: "*bar* ",
children: vec![Object::PlainText(PlainText { source: "bar" })]
})]
})

View File

@ -291,5 +291,5 @@ fn _rematch_text_markup_object<'r, 's, 'x>(
let (remaining, _close) = text_markup_end_specialized(context, remaining)?;
let (remaining, _trailing_whitespace) = space0(remaining)?;
Ok((remaining, Vec::new()))
Ok((remaining, children))
}