Fix simple citations by making prefixes and suffixes optional.

This commit is contained in:
Tom Alexander
2023-07-21 18:19:39 -04:00
parent 4ad297f58a
commit 1a8bf01fba
3 changed files with 11 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ use super::regular_link::regular_link;
use super::Context;
use crate::error::Res;
use crate::parser::angle_link::angle_link;
use crate::parser::citation::citation;
use crate::parser::entity::entity;
use crate::parser::export_snippet::export_snippet;
use crate::parser::footnote_reference::footnote_reference;
@@ -28,6 +29,10 @@ pub fn standard_set_object<'r, 's>(
not(|i| context.check_exit_matcher(i))(input)?;
alt((
map(
parser_with_context!(citation)(context),
Object::Citation,
),
map(
parser_with_context!(footnote_reference)(context),
Object::FootnoteReference,