diff --git a/src/parser/text_element_parser.rs b/src/parser/text_element_parser.rs index ab10cad8..cfc6d59f 100644 --- a/src/parser/text_element_parser.rs +++ b/src/parser/text_element_parser.rs @@ -42,7 +42,12 @@ fn flat_text_element<'s, 'r>( ))(i) } -fn flat_bold<'s, 'r>(i: &'s str, context: &'r TestContext) -> Res<&'s str, TextElement<'s>> { +fn flat_bold<'s, 'r>( + i: &'s str, + context: &'r TestContext, +) -> Res<&'s str, TextElement<'s>> { + let new_context = + context.with_additional_fail_matcher(Rc::new(RefCell::new(recognize(bold_end)))); // let new_context = context.without_bold(Rc::new(RefCell::new(recognize(bold_end)))); todo!() }