Fix parsing citations inside paragraphs.

This commit is contained in:
Tom Alexander
2023-07-21 18:52:02 -04:00
parent d678391789
commit 7ce9dafd96
3 changed files with 6 additions and 4 deletions

View File

@@ -29,10 +29,7 @@ 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!(citation)(context), Object::Citation),
map(
parser_with_context!(footnote_reference)(context),
Object::FootnoteReference,
@@ -89,6 +86,7 @@ pub fn any_object_except_plain_text<'r, 's>(
) -> Res<&'s str, Object<'s>> {
// Used for exit matchers so this does not check exit matcher condition.
alt((
map(parser_with_context!(citation)(context), Object::Citation),
map(
parser_with_context!(footnote_reference)(context),
Object::FootnoteReference,