hayagriva
hayagriva copied to clipboard
Parse page ranges following citeproc
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.