Recursion limit.

This commit is contained in:
Tom Alexander 2022-07-17 19:01:21 -04:00
parent 43bc6225eb
commit c5d255d357
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -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),