Skip to content

Correctly handle punctuation like ?. - #560

Merged
Drodt merged 2 commits into
typst:mainfrom
DerDrodt:fix-552
Nov 28, 2026
Merged

Drodt merged 2 commits into
typst:mainfrom
DerDrodt:fix-552

Conversation

@Drodt

@Drodt Drodt commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

Fix #552.

While not explicitly in the CSL spec, processors like citeproc handle ?., !., etc. by transforming them to ? and !, respectively. We also add :? to ? and similar cases. This is plainly the correct handling when rendering bibliographies.

Adds one passing CSL test (bugreports_YearSuffixInHarvard1).

@Drodt
Drodt merged commit 63edd16 into typst:main Nov 28, 2026
4 checks passed
@Drodt
Drodt deleted the fix-552 branch November 28, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

APA style adds a full stop after a title ending in a question mark

1 participant