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);