From 6676012eb15c77438bed71b9b7715d28279da101 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Thu, 7 Sep 2023 01:45:02 -0400 Subject: [PATCH] Change footnote reference class to Gamma. --- .../object/footnote_reference/nested_footnote_references.org | 3 +++ src/parser/footnote_reference.rs | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 org_mode_samples/object/footnote_reference/nested_footnote_references.org diff --git a/org_mode_samples/object/footnote_reference/nested_footnote_references.org b/org_mode_samples/object/footnote_reference/nested_footnote_references.org new file mode 100644 index 0000000..310f174 --- /dev/null +++ b/org_mode_samples/object/footnote_reference/nested_footnote_references.org @@ -0,0 +1,3 @@ +*[fn:: /abcdef[fn::ghijklmnopqrstuvw]xyz/ r]* + +*[fn:: /abcdef[fn::ghijk *lmnopq* rstuvw]xyz/ r]* diff --git a/src/parser/footnote_reference.rs b/src/parser/footnote_reference.rs index 0f3738c..28f8b52 100644 --- a/src/parser/footnote_reference.rs +++ b/src/parser/footnote_reference.rs @@ -42,7 +42,7 @@ fn anonymous_footnote<'b, 'g, 'r, 's>( let (remaining, _) = tag_no_case("[fn::")(input)?; let exit_with_depth = footnote_definition_end(remaining.get_bracket_depth()); let parser_context = ContextElement::ExitMatcherNode(ExitMatcherNode { - class: ExitClass::Beta, + class: ExitClass::Gamma, exit_matcher: &exit_with_depth, }); let parser_context = context.with_additional_node(&parser_context); @@ -78,7 +78,7 @@ fn inline_footnote<'b, 'g, 'r, 's>( let (remaining, _) = tag(":")(remaining)?; let exit_with_depth = footnote_definition_end(remaining.get_bracket_depth()); let parser_context = ContextElement::ExitMatcherNode(ExitMatcherNode { - class: ExitClass::Beta, + class: ExitClass::Gamma, exit_matcher: &exit_with_depth, }); let parser_context = context.with_additional_node(&parser_context);