diff --git a/src/parser/citation_reference.rs b/src/parser/citation_reference.rs index 66bdafa..306f43e 100644 --- a/src/parser/citation_reference.rs +++ b/src/parser/citation_reference.rs @@ -39,10 +39,12 @@ pub(crate) fn citation_reference<'b, 'g, 'r, 's>( let (remaining, key) = parser_with_context!(citation_reference_key)(context)(remaining)?; let (remaining, suffix) = must_balance_bracket(opt(parser_with_context!(key_suffix)(context)))(remaining)?; + let without_closing_semi_remaining = remaining; + let (remaining, _closing_semi) = opt(tag(";"))(remaining)?; let source = get_consumed(input, remaining); Ok(( - remaining, + without_closing_semi_remaining, CitationReference { source: source.into(), key: key.into(),