Fix the simple test by allowing bold to start/end with <> and by capturing trailing whitespace from radio links.

This commit is contained in:
Tom Alexander
2023-07-14 20:55:16 -04:00
parent e608b73d1a
commit 27d863b875
2 changed files with 3 additions and 2 deletions

View File

@@ -32,6 +32,7 @@ pub fn radio_link<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s s
for radio_target in radio_targets {
let rematched_target = rematch_target(context, radio_target, input);
if let Ok((remaining, rematched_target)) = rematched_target {
let (remaining, _) = space0(remaining)?;
let source = get_consumed(input, remaining);
return Ok((
remaining,