See https://github.com/typst/typst/issues/5215 for background. I'm about to propose two pulls to fix the issue, but I don't know if that may be premature; in any event, an expert's opinion is surely welcome.