Include closing semicolon in citation reference.

This commit is contained in:
Tom Alexander 2023-10-09 15:45:10 -04:00
parent 8a0f9d4540
commit 4a367dd7e0
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 3 additions and 1 deletions

View File

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