Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse page ranges following citeproc #155

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

DerDrodt
Copy link
Contributor

This PR depends on typst/citationberg#7.

Allows for page-range field to have multiple ranges, as in 1-4 & 7-12, 13, 14\-19.

Each of these is split into parts:

  • Commas as ,
  • Ampersands like &
  • Single pages like 13
  • Escaped ranges like 14\-19, where the hyphen will not be replaced by the given separator
  • Ranges like 1-4

Ranges are given to citationberg to format depending on the format rule per the CSL spec.

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.

None yet

1 participant