Skip to content

Commit

Permalink
fix: prefer literal
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Apr 8, 2024
1 parent 23adc24 commit 62476ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/citation-js-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export function getInlineCitation(data: CitationJson, kind: InlineCite, opts?: I
}
if (authors.length > 2) {
return [
{ type: 'text', value: `${prefix}${authors[0].family ?? authors[0].literal} ` },
{ type: 'text', value: `${prefix}${authors[0].literal ?? authors[0].family} ` },
{ type: 'emphasis', children: [{ type: 'text', value: 'et al.' }] },
{ type: 'text', value: `${yearPart}` },
];
Expand Down

0 comments on commit 62476ac

Please sign in to comment.