I was double-matching the bold end.

This commit is contained in:
Tom Alexander 2022-11-25 18:35:21 -05:00
parent 9c54689bd9
commit e215fd35ca
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 0 additions and 1 deletions

View File

@ -57,7 +57,6 @@ fn flat_bold<'s, 'r>(i: &'s str, context: &'r OrgModeContext<'r>) -> Res<&'s str
let (remaining, captured) = recognize(tuple((
bold_start,
many_till(text_element_parser, bold_end),
bold_end,
)))(i)?;
let ret = TextElement::Bold(Bold { contents: captured });
Ok((remaining, ret))