From c5d255d3570eb4e055b045f64fc2edbfab8b7a4b Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sun, 17 Jul 2022 19:01:21 -0400 Subject: [PATCH] Recursion limit. --- src/parser/text_element_parser.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/parser/text_element_parser.rs b/src/parser/text_element_parser.rs index abb6eea..2264b48 100644 --- a/src/parser/text_element_parser.rs +++ b/src/parser/text_element_parser.rs @@ -31,20 +31,14 @@ where { not(&mut context.fail_matcher)(i)?; if context.can_match_bold { - // todo + // if let Ok(v) = parser_with_context!(flat_bold)(context.clone())(i) { + // return Ok(v); + // } } if context.can_match_link { // todo } alt(( - // map( - // BoldParser::new(slf.context.fail_matcher.clone()), - // TextElement::Bold, - // ), - // map( - // LinkParser::new(slf.context.fail_matcher.clone()), - // TextElement::Link, - // ), map(span, TextElement::Span), map(symbol("*"), TextElement::Symbol), map(symbol("["), TextElement::Symbol),