Setting Leading to baseline-to-baseline messes with #outline

A user of my template noticed that changing typst’s default settings for leading interferes with the #outline command. Normally, a table of contents generated with #outline() would generate clickable entries. However, once changing the default of leading, the outline contains no links anymore. See example:

#set text(top-edge: "baseline", bottom-edge: "baseline")
#set par(spacing: 1.25em, leading: 1.25em)

#outline()


= Heading 1

#lorem(400)

== Heading 2
#lorem(400)

= Another
#lorem(400)

= One More
#lorem(400)

== Subheading
#lorem(400)

== Subheading

#lorem(400)

I am not sure why the one setting has a side effect on another seemingly unrelated setting. Please advise on how to set this correctly in such a way that I do not need to completely reconfigure all other settings.

You’ve changed text’s bounding box to a thin line, which affected the link bounding box. #set text(top-edge: "baseline", bottom-edge: "baseline") semantically doesn’t make any sense anyway. Proposal: change `leading` option to `line-height` · Issue #4224 · typst/typst · GitHub