How to Fix Broken Hyperlinks in Typst Bibliography When Links Break Across Lines?

I’m encountering an issue with my Typst bibliography where hyperlinks (or DOIs) that break across multiple lines aren’t functioning properly. Sometimes, when a link spans multiple lines, only part of it remains clickable, breaking the hyperlink functionality.

Does anyone know:

  1. Is this a known issue in Typst?
  2. Are there any workarounds or solutions to ensure hyperlinks remain intact even when they break across lines?
  3. Are there any specific bibliography settings or configurations that might help resolve this?

image
image

This is a problem with PDF viewers (that try detect links automatically), but possibly we can work around it. There is an issue for it here: Bibliography URL flakyness · Issue #3620 · typst/typst · GitHub

2 Likes