Port greater blocker over to ak_element!().

This commit is contained in:
Tom Alexander
2023-10-12 16:27:57 -04:00
parent 5136880532
commit 59448a4f2c
2 changed files with 40 additions and 20 deletions

View File

@@ -74,7 +74,14 @@ fn _element<'b, 'g, 'r, 's>(
Element::PlainList
);
let greater_block_matcher = parser_with_context!(greater_block)(context);
ak_element!(
greater_block,
&mut affiliated_keywords,
post_affiliated_keywords_input,
context,
input
);
let dynamic_block_matcher = parser_with_context!(dynamic_block)(context);
let footnote_definition_matcher = parser_with_context!(footnote_definition)(context);
let comment_matcher = parser_with_context!(comment)(context);
@@ -101,7 +108,6 @@ fn _element<'b, 'g, 'r, 's>(
let _enter = span.enter();
opt(alt((
greater_block_matcher,
map(dynamic_block_matcher, Element::DynamicBlock),
map(footnote_definition_matcher, Element::FootnoteDefinition),
map(comment_matcher, Element::Comment),