Skip to content

Commit

Permalink
fixes #2817
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Mar 20, 2024
1 parent d4b01b8 commit 32a878d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/cayw/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function citation2latex(citation, options) {
// export singleton: https://k94n.com/es6-modules-single-instance-pattern
export const Formatter = new class { // eslint-disable-line @typescript-eslint/naming-convention,no-underscore-dangle,id-blacklist,id-match
public async typst(citations, _options): Promise<string> {
return await citations.map(citation => `#cite(${citation.citationKey.match(/^[a-z0-9_\-:.]+$/i) ? `<${citation.citationKey}>` : JSON.stringify(citation.citationKey)})`).join('\n')
return await citations.map(citation => `#cite(${citation.citationKey.match(/^[a-z0-9_\-:.]+$/i) ? `<${citation.citationKey}>` : JSON.stringify(citation.citationKey)})`).join('')
}

public async citationLinks(citations, _options): Promise<string> {
Expand Down

0 comments on commit 32a878d

Please sign in to comment.