diff --git a/src/parser/text_element_parser.rs b/src/parser/text_element_parser.rs index 2264b48..0954dd8 100644 --- a/src/parser/text_element_parser.rs +++ b/src/parser/text_element_parser.rs @@ -31,9 +31,9 @@ where { not(&mut context.fail_matcher)(i)?; if context.can_match_bold { - // if let Ok(v) = parser_with_context!(flat_bold)(context.clone())(i) { - // return Ok(v); - // } + if let Ok(v) = parser_with_context!(flat_bold)(context.clone())(i) { + return Ok(v); + } } if context.can_match_link { // todo @@ -48,6 +48,7 @@ where ))(i) } +#[inline(always)] pub fn flat_bold<'a, F>(i: &'a str, context: &mut NomContext) -> Res<&'a str, TextElement<'a>> where F: for<'b> FnMut(&'b str) -> IResult<&'b str, &'b str, VerboseError<&'b str>>,