I was double-matching the bold end.
This commit is contained in:
parent
9c54689bd9
commit
e215fd35ca
@ -57,7 +57,6 @@ fn flat_bold<'s, 'r>(i: &'s str, context: &'r OrgModeContext<'r>) -> Res<&'s str
|
|||||||
let (remaining, captured) = recognize(tuple((
|
let (remaining, captured) = recognize(tuple((
|
||||||
bold_start,
|
bold_start,
|
||||||
many_till(text_element_parser, bold_end),
|
many_till(text_element_parser, bold_end),
|
||||||
bold_end,
|
|
||||||
)))(i)?;
|
)))(i)?;
|
||||||
let ret = TextElement::Bold(Bold { contents: captured });
|
let ret = TextElement::Bold(Bold { contents: captured });
|
||||||
Ok((remaining, ret))
|
Ok((remaining, ret))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user