Include the trailing space for the bolds.
This commit is contained in:
parent
7ca8beac5a
commit
cdd3517655
@ -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" })]
|
||||
})]
|
||||
})
|
||||
|
@ -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))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user