summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Schmitz <tobiasschmitz2001@gmail.com>2025-05-12 20:12:35 +0200
committerGitHub <noreply@github.com>2025-05-12 18:12:35 +0000
commitd204a28818c78cbbd66e2ffcc8d2e7a8c57b411d (patch)
tree33fc75e4e8739765cdc7b895bd716fd44b8d8fbe
parent22a117a091f2d5936533d361098e7483f2997568 (diff)
Expand text link boxes vertically by half the leading spacing (#6252)
-rw-r--r--crates/typst-layout/src/inline/shaping.rs4
-rw-r--r--crates/typst-layout/src/modifiers.rs48
-rw-r--r--tests/ref/bibliography-basic.pngbin7552 -> 7676 bytes
-rw-r--r--tests/ref/bibliography-before-content.pngbin17122 -> 17010 bytes
-rw-r--r--tests/ref/bibliography-grid-par.pngbin8757 -> 8821 bytes
-rw-r--r--tests/ref/bibliography-indent-par.pngbin9096 -> 9120 bytes
-rw-r--r--tests/ref/bibliography-math.pngbin4610 -> 4567 bytes
-rw-r--r--tests/ref/bibliography-multiple-files.pngbin16310 -> 16308 bytes
-rw-r--r--tests/ref/bibliography-ordering.pngbin11795 -> 11741 bytes
-rw-r--r--tests/ref/block-consistent-width.pngbin920 -> 947 bytes
-rw-r--r--tests/ref/cite-footnote.pngbin13532 -> 13383 bytes
-rw-r--r--tests/ref/cite-form.pngbin10863 -> 10698 bytes
-rw-r--r--tests/ref/cite-group.pngbin4745 -> 4806 bytes
-rw-r--r--tests/ref/cite-grouping-and-ordering.pngbin841 -> 869 bytes
-rw-r--r--tests/ref/figure-basic.pngbin7911 -> 7850 bytes
-rw-r--r--tests/ref/footnote-basic.pngbin395 -> 417 bytes
-rw-r--r--tests/ref/footnote-block-at-end.pngbin617 -> 643 bytes
-rw-r--r--tests/ref/footnote-block-fr.pngbin833 -> 867 bytes
-rw-r--r--tests/ref/footnote-break-across-pages-block.pngbin1263 -> 1280 bytes
-rw-r--r--tests/ref/footnote-break-across-pages-float.pngbin1428 -> 1459 bytes
-rw-r--r--tests/ref/footnote-break-across-pages-nested.pngbin1315 -> 1342 bytes
-rw-r--r--tests/ref/footnote-break-across-pages.pngbin5473 -> 5489 bytes
-rw-r--r--tests/ref/footnote-duplicate.pngbin7510 -> 7555 bytes
-rw-r--r--tests/ref/footnote-entry.pngbin1793 -> 1831 bytes
-rw-r--r--tests/ref/footnote-float-priority.pngbin1433 -> 1450 bytes
-rw-r--r--tests/ref/footnote-in-caption.pngbin6154 -> 6044 bytes
-rw-r--r--tests/ref/footnote-in-columns.pngbin1248 -> 1283 bytes
-rw-r--r--tests/ref/footnote-in-list.pngbin2507 -> 2541 bytes
-rw-r--r--tests/ref/footnote-in-place.pngbin1110 -> 1132 bytes
-rw-r--r--tests/ref/footnote-in-table.pngbin12727 -> 12817 bytes
-rw-r--r--tests/ref/footnote-invariant.pngbin1080 -> 1099 bytes
-rw-r--r--tests/ref/footnote-multiple-in-one-line.pngbin699 -> 739 bytes
-rw-r--r--tests/ref/footnote-nested-break-across-pages.pngbin1324 -> 1369 bytes
-rw-r--r--tests/ref/footnote-nested.pngbin2539 -> 2579 bytes
-rw-r--r--tests/ref/footnote-ref-call.pngbin515 -> 547 bytes
-rw-r--r--tests/ref/footnote-ref-forward.pngbin1202 -> 1227 bytes
-rw-r--r--tests/ref/footnote-ref-in-footnote.pngbin2524 -> 2580 bytes
-rw-r--r--tests/ref/footnote-ref-multiple.pngbin4407 -> 4425 bytes
-rw-r--r--tests/ref/footnote-ref.pngbin1466 -> 1497 bytes
-rw-r--r--tests/ref/footnote-space-collapsing.pngbin749 -> 772 bytes
-rw-r--r--tests/ref/footnote-styling.pngbin828 -> 850 bytes
-rw-r--r--tests/ref/issue-1433-footnote-in-list.pngbin524 -> 558 bytes
-rw-r--r--tests/ref/issue-1597-cite-footnote.pngbin508 -> 531 bytes
-rw-r--r--tests/ref/issue-2531-cite-show-set.pngbin981 -> 989 bytes
-rw-r--r--tests/ref/issue-3481-cite-location.pngbin500 -> 508 bytes
-rw-r--r--tests/ref/issue-3699-cite-twice-et-al.pngbin2297 -> 1857 bytes
-rw-r--r--tests/ref/issue-4454-footnote-ref-numbering.pngbin802 -> 841 bytes
-rw-r--r--tests/ref/issue-4618-bibliography-set-heading-level.pngbin5129 -> 5175 bytes
-rw-r--r--tests/ref/issue-5256-multiple-footnotes-in-footnote.pngbin796 -> 820 bytes
-rw-r--r--tests/ref/issue-5354-footnote-empty-frame-infinite-loop.pngbin2342 -> 1105 bytes
-rw-r--r--tests/ref/issue-5435-footnote-migration-in-floats.pngbin448 -> 475 bytes
-rw-r--r--tests/ref/issue-5496-footnote-in-float-never-fits.pngbin399 -> 409 bytes
-rw-r--r--tests/ref/issue-5496-footnote-never-fits-multiple.pngbin1211 -> 1230 bytes
-rw-r--r--tests/ref/issue-5496-footnote-never-fits.pngbin399 -> 409 bytes
-rw-r--r--tests/ref/issue-5496-footnote-separator-never-fits.pngbin226 -> 242 bytes
-rw-r--r--tests/ref/issue-5503-cite-group-interrupted-by-par-align.pngbin1487 -> 1216 bytes
-rw-r--r--tests/ref/issue-5503-cite-in-align.pngbin393 -> 396 bytes
-rw-r--r--tests/ref/issue-622-hide-meta-cite.pngbin2470 -> 2429 bytes
-rw-r--r--tests/ref/issue-758-link-repeat.pngbin1836 -> 1848 bytes
-rw-r--r--tests/ref/issue-785-cite-locate.pngbin9441 -> 9284 bytes
-rw-r--r--tests/ref/issue-footnotes-skip-first-page.pngbin524 -> 567 bytes
-rw-r--r--tests/ref/linebreak-cite-punctuation.pngbin10391 -> 10455 bytes
-rw-r--r--tests/ref/linebreak-link-end.pngbin2081 -> 2051 bytes
-rw-r--r--tests/ref/linebreak-link-justify.pngbin12210 -> 11661 bytes
-rw-r--r--tests/ref/linebreak-link.pngbin6423 -> 3994 bytes
-rw-r--r--tests/ref/link-basic.pngbin6240 -> 5991 bytes
-rw-r--r--tests/ref/link-bracket-balanced.pngbin3948 -> 2506 bytes
-rw-r--r--tests/ref/link-bracket-unbalanced-closing.pngbin2183 -> 1648 bytes
-rw-r--r--tests/ref/link-show.pngbin2599 -> 2563 bytes
-rw-r--r--tests/ref/link-to-label.pngbin962 -> 1013 bytes
-rw-r--r--tests/ref/link-to-page.pngbin981 -> 892 bytes
-rw-r--r--tests/ref/link-trailing-period.pngbin2989 -> 2958 bytes
-rw-r--r--tests/ref/link-transformed.pngbin1247 -> 1239 bytes
-rw-r--r--tests/ref/math-equation-numbering.pngbin4699 -> 4615 bytes
-rw-r--r--tests/ref/measure-citation-deeply-nested.pngbin711 -> 711 bytes
-rw-r--r--tests/ref/measure-citation-in-flow.pngbin729 -> 726 bytes
-rw-r--r--tests/ref/par-semantic-align.pngbin3082 -> 3104 bytes
-rw-r--r--tests/ref/quote-cite-format-author-date.pngbin2131 -> 2119 bytes
-rw-r--r--tests/ref/quote-cite-format-label-or-numeric.pngbin2170 -> 2144 bytes
-rw-r--r--tests/ref/quote-cite-format-note.pngbin2889 -> 2800 bytes
-rw-r--r--tests/ref/quote-inline.pngbin1437 -> 1476 bytes
-rw-r--r--tests/ref/ref-basic.pngbin4001 -> 4006 bytes
-rw-r--r--tests/ref/ref-form-page-unambiguous.pngbin2859 -> 2929 bytes
-rw-r--r--tests/ref/ref-form-page.pngbin3592 -> 3561 bytes
-rw-r--r--tests/ref/ref-supplements.pngbin8266 -> 8167 bytes
-rw-r--r--tests/ref/show-text-citation-smartquote.pngbin403 -> 434 bytes
-rw-r--r--tests/ref/show-text-citation.pngbin524 -> 496 bytes
-rw-r--r--tests/ref/show-text-in-citation.pngbin795 -> 811 bytes
-rw-r--r--tests/ref/table-header-citation.pngbin626 -> 632 bytes
89 files changed, 40 insertions, 12 deletions
diff --git a/crates/typst-layout/src/inline/shaping.rs b/crates/typst-layout/src/inline/shaping.rs
index 8236d1e3..ca723c0a 100644
--- a/crates/typst-layout/src/inline/shaping.rs
+++ b/crates/typst-layout/src/inline/shaping.rs
@@ -20,7 +20,7 @@ use unicode_bidi::{BidiInfo, Level as BidiLevel};
use unicode_script::{Script, UnicodeScript};
use super::{decorate, Item, Range, SpanMapper};
-use crate::modifiers::{FrameModifiers, FrameModify};
+use crate::modifiers::FrameModifyText;
/// The result of shaping text.
///
@@ -327,7 +327,7 @@ impl<'a> ShapedText<'a> {
offset += width;
}
- frame.modify(&FrameModifiers::get_in(self.styles));
+ frame.modify_text(self.styles);
frame
}
diff --git a/crates/typst-layout/src/modifiers.rs b/crates/typst-layout/src/modifiers.rs
index ac5f40b0..b0371d63 100644
--- a/crates/typst-layout/src/modifiers.rs
+++ b/crates/typst-layout/src/modifiers.rs
@@ -1,6 +1,6 @@
use typst_library::foundations::StyleChain;
-use typst_library::layout::{Fragment, Frame, FrameItem, HideElem, Point};
-use typst_library::model::{Destination, LinkElem};
+use typst_library::layout::{Abs, Fragment, Frame, FrameItem, HideElem, Point, Sides};
+use typst_library::model::{Destination, LinkElem, ParElem};
/// Frame-level modifications resulting from styles that do not impose any
/// layout structure.
@@ -52,14 +52,7 @@ pub trait FrameModify {
impl FrameModify for Frame {
fn modify(&mut self, modifiers: &FrameModifiers) {
- if let Some(dest) = &modifiers.dest {
- let size = self.size();
- self.push(Point::zero(), FrameItem::Link(dest.clone(), size));
- }
-
- if modifiers.hidden {
- self.hide();
- }
+ modify_frame(self, modifiers, None);
}
}
@@ -82,6 +75,41 @@ where
}
}
+pub trait FrameModifyText {
+ /// Resolve and apply [`FrameModifiers`] for this text frame.
+ fn modify_text(&mut self, styles: StyleChain);
+}
+
+impl FrameModifyText for Frame {
+ fn modify_text(&mut self, styles: StyleChain) {
+ let modifiers = FrameModifiers::get_in(styles);
+ let expand_y = 0.5 * ParElem::leading_in(styles);
+ let outset = Sides::new(Abs::zero(), expand_y, Abs::zero(), expand_y);
+ modify_frame(self, &modifiers, Some(outset));
+ }
+}
+
+fn modify_frame(
+ frame: &mut Frame,
+ modifiers: &FrameModifiers,
+ link_box_outset: Option<Sides<Abs>>,
+) {
+ if let Some(dest) = &modifiers.dest {
+ let mut pos = Point::zero();
+ let mut size = frame.size();
+ if let Some(outset) = link_box_outset {
+ pos.y -= outset.top;
+ pos.x -= outset.left;
+ size += outset.sum_by_axis();
+ }
+ frame.push(pos, FrameItem::Link(dest.clone(), size));
+ }
+
+ if modifiers.hidden {
+ frame.hide();
+ }
+}
+
/// Performs layout and modification in one step.
///
/// This just runs `layout(styles).modified(&FrameModifiers::get_in(styles))`,
diff --git a/tests/ref/bibliography-basic.png b/tests/ref/bibliography-basic.png
index 0844eaf8..86d02cc6 100644
--- a/tests/ref/bibliography-basic.png
+++ b/tests/ref/bibliography-basic.png
Binary files differ
diff --git a/tests/ref/bibliography-before-content.png b/tests/ref/bibliography-before-content.png
index eb9f26d8..a16ea1df 100644
--- a/tests/ref/bibliography-before-content.png
+++ b/tests/ref/bibliography-before-content.png
Binary files differ
diff --git a/tests/ref/bibliography-grid-par.png b/tests/ref/bibliography-grid-par.png
index 5befbcc5..0757e92c 100644
--- a/tests/ref/bibliography-grid-par.png
+++ b/tests/ref/bibliography-grid-par.png
Binary files differ
diff --git a/tests/ref/bibliography-indent-par.png b/tests/ref/bibliography-indent-par.png
index 02278124..031e2897 100644
--- a/tests/ref/bibliography-indent-par.png
+++ b/tests/ref/bibliography-indent-par.png
Binary files differ
diff --git a/tests/ref/bibliography-math.png b/tests/ref/bibliography-math.png
index 6b60fef4..6d6d88d5 100644
--- a/tests/ref/bibliography-math.png
+++ b/tests/ref/bibliography-math.png
Binary files differ
diff --git a/tests/ref/bibliography-multiple-files.png b/tests/ref/bibliography-multiple-files.png
index 3be3763f..b2e7b014 100644
--- a/tests/ref/bibliography-multiple-files.png
+++ b/tests/ref/bibliography-multiple-files.png
Binary files differ
diff --git a/tests/ref/bibliography-ordering.png b/tests/ref/bibliography-ordering.png
index c19b7e7d..ad5e8601 100644
--- a/tests/ref/bibliography-ordering.png
+++ b/tests/ref/bibliography-ordering.png
Binary files differ
diff --git a/tests/ref/block-consistent-width.png b/tests/ref/block-consistent-width.png
index 045603cb..f181bd33 100644
--- a/tests/ref/block-consistent-width.png
+++ b/tests/ref/block-consistent-width.png
Binary files differ
diff --git a/tests/ref/cite-footnote.png b/tests/ref/cite-footnote.png
index dd2cf8bd..e89b1dc1 100644
--- a/tests/ref/cite-footnote.png
+++ b/tests/ref/cite-footnote.png
Binary files differ
diff --git a/tests/ref/cite-form.png b/tests/ref/cite-form.png
index a9fbe751..91a6d2e2 100644
--- a/tests/ref/cite-form.png
+++ b/tests/ref/cite-form.png
Binary files differ
diff --git a/tests/ref/cite-group.png b/tests/ref/cite-group.png
index 02772f49..d512d07e 100644
--- a/tests/ref/cite-group.png
+++ b/tests/ref/cite-group.png
Binary files differ
diff --git a/tests/ref/cite-grouping-and-ordering.png b/tests/ref/cite-grouping-and-ordering.png
index 8dea1b53..69c1db47 100644
--- a/tests/ref/cite-grouping-and-ordering.png
+++ b/tests/ref/cite-grouping-and-ordering.png
Binary files differ
diff --git a/tests/ref/figure-basic.png b/tests/ref/figure-basic.png
index 69388755..eed77cc3 100644
--- a/tests/ref/figure-basic.png
+++ b/tests/ref/figure-basic.png
Binary files differ
diff --git a/tests/ref/footnote-basic.png b/tests/ref/footnote-basic.png
index 44ace903..7351bbb7 100644
--- a/tests/ref/footnote-basic.png
+++ b/tests/ref/footnote-basic.png
Binary files differ
diff --git a/tests/ref/footnote-block-at-end.png b/tests/ref/footnote-block-at-end.png
index 09880aab..15d0bb59 100644
--- a/tests/ref/footnote-block-at-end.png
+++ b/tests/ref/footnote-block-at-end.png
Binary files differ
diff --git a/tests/ref/footnote-block-fr.png b/tests/ref/footnote-block-fr.png
index 451e4d77..80781fd1 100644
--- a/tests/ref/footnote-block-fr.png
+++ b/tests/ref/footnote-block-fr.png
Binary files differ
diff --git a/tests/ref/footnote-break-across-pages-block.png b/tests/ref/footnote-break-across-pages-block.png
index f2882dbc..fd512950 100644
--- a/tests/ref/footnote-break-across-pages-block.png
+++ b/tests/ref/footnote-break-across-pages-block.png
Binary files differ
diff --git a/tests/ref/footnote-break-across-pages-float.png b/tests/ref/footnote-break-across-pages-float.png
index 5d3ea107..a343137b 100644
--- a/tests/ref/footnote-break-across-pages-float.png
+++ b/tests/ref/footnote-break-across-pages-float.png
Binary files differ
diff --git a/tests/ref/footnote-break-across-pages-nested.png b/tests/ref/footnote-break-across-pages-nested.png
index f87658ce..79b09cfb 100644
--- a/tests/ref/footnote-break-across-pages-nested.png
+++ b/tests/ref/footnote-break-across-pages-nested.png
Binary files differ
diff --git a/tests/ref/footnote-break-across-pages.png b/tests/ref/footnote-break-across-pages.png
index 878227cb..ba985d1e 100644
--- a/tests/ref/footnote-break-across-pages.png
+++ b/tests/ref/footnote-break-across-pages.png
Binary files differ
diff --git a/tests/ref/footnote-duplicate.png b/tests/ref/footnote-duplicate.png
index b5a73f74..e95228e4 100644
--- a/tests/ref/footnote-duplicate.png
+++ b/tests/ref/footnote-duplicate.png
Binary files differ
diff --git a/tests/ref/footnote-entry.png b/tests/ref/footnote-entry.png
index dd09acb9..9e0108f8 100644
--- a/tests/ref/footnote-entry.png
+++ b/tests/ref/footnote-entry.png
Binary files differ
diff --git a/tests/ref/footnote-float-priority.png b/tests/ref/footnote-float-priority.png
index 1017ed51..7d649d55 100644
--- a/tests/ref/footnote-float-priority.png
+++ b/tests/ref/footnote-float-priority.png
Binary files differ
diff --git a/tests/ref/footnote-in-caption.png b/tests/ref/footnote-in-caption.png
index 79b2b5d0..cd4f837b 100644
--- a/tests/ref/footnote-in-caption.png
+++ b/tests/ref/footnote-in-caption.png
Binary files differ
diff --git a/tests/ref/footnote-in-columns.png b/tests/ref/footnote-in-columns.png
index 281ec883..8b5f1201 100644
--- a/tests/ref/footnote-in-columns.png
+++ b/tests/ref/footnote-in-columns.png
Binary files differ
diff --git a/tests/ref/footnote-in-list.png b/tests/ref/footnote-in-list.png
index daf94e95..edb24156 100644
--- a/tests/ref/footnote-in-list.png
+++ b/tests/ref/footnote-in-list.png
Binary files differ
diff --git a/tests/ref/footnote-in-place.png b/tests/ref/footnote-in-place.png
index b500ac80..2f9681e2 100644
--- a/tests/ref/footnote-in-place.png
+++ b/tests/ref/footnote-in-place.png
Binary files differ
diff --git a/tests/ref/footnote-in-table.png b/tests/ref/footnote-in-table.png
index e110eac6..2c7e4230 100644
--- a/tests/ref/footnote-in-table.png
+++ b/tests/ref/footnote-in-table.png
Binary files differ
diff --git a/tests/ref/footnote-invariant.png b/tests/ref/footnote-invariant.png
index a183ba7a..23838c36 100644
--- a/tests/ref/footnote-invariant.png
+++ b/tests/ref/footnote-invariant.png
Binary files differ
diff --git a/tests/ref/footnote-multiple-in-one-line.png b/tests/ref/footnote-multiple-in-one-line.png
index 12def79b..41faa1fb 100644
--- a/tests/ref/footnote-multiple-in-one-line.png
+++ b/tests/ref/footnote-multiple-in-one-line.png
Binary files differ
diff --git a/tests/ref/footnote-nested-break-across-pages.png b/tests/ref/footnote-nested-break-across-pages.png
index 889fb067..0903214c 100644
--- a/tests/ref/footnote-nested-break-across-pages.png
+++ b/tests/ref/footnote-nested-break-across-pages.png
Binary files differ
diff --git a/tests/ref/footnote-nested.png b/tests/ref/footnote-nested.png
index 06617d98..365bef4e 100644
--- a/tests/ref/footnote-nested.png
+++ b/tests/ref/footnote-nested.png
Binary files differ
diff --git a/tests/ref/footnote-ref-call.png b/tests/ref/footnote-ref-call.png
index afc10321..635865e4 100644
--- a/tests/ref/footnote-ref-call.png
+++ b/tests/ref/footnote-ref-call.png
Binary files differ
diff --git a/tests/ref/footnote-ref-forward.png b/tests/ref/footnote-ref-forward.png
index afb4d7cb..f222b4be 100644
--- a/tests/ref/footnote-ref-forward.png
+++ b/tests/ref/footnote-ref-forward.png
Binary files differ
diff --git a/tests/ref/footnote-ref-in-footnote.png b/tests/ref/footnote-ref-in-footnote.png
index 94498598..73901b47 100644
--- a/tests/ref/footnote-ref-in-footnote.png
+++ b/tests/ref/footnote-ref-in-footnote.png
Binary files differ
diff --git a/tests/ref/footnote-ref-multiple.png b/tests/ref/footnote-ref-multiple.png
index 899afca1..59e9fece 100644
--- a/tests/ref/footnote-ref-multiple.png
+++ b/tests/ref/footnote-ref-multiple.png
Binary files differ
diff --git a/tests/ref/footnote-ref.png b/tests/ref/footnote-ref.png
index 812514ea..278f0e59 100644
--- a/tests/ref/footnote-ref.png
+++ b/tests/ref/footnote-ref.png
Binary files differ
diff --git a/tests/ref/footnote-space-collapsing.png b/tests/ref/footnote-space-collapsing.png
index bad0691f..6936f3c1 100644
--- a/tests/ref/footnote-space-collapsing.png
+++ b/tests/ref/footnote-space-collapsing.png
Binary files differ
diff --git a/tests/ref/footnote-styling.png b/tests/ref/footnote-styling.png
index a68cca9d..f9400ee7 100644
--- a/tests/ref/footnote-styling.png
+++ b/tests/ref/footnote-styling.png
Binary files differ
diff --git a/tests/ref/issue-1433-footnote-in-list.png b/tests/ref/issue-1433-footnote-in-list.png
index a012e234..19934a70 100644
--- a/tests/ref/issue-1433-footnote-in-list.png
+++ b/tests/ref/issue-1433-footnote-in-list.png
Binary files differ
diff --git a/tests/ref/issue-1597-cite-footnote.png b/tests/ref/issue-1597-cite-footnote.png
index 6ec017c7..e7c076b1 100644
--- a/tests/ref/issue-1597-cite-footnote.png
+++ b/tests/ref/issue-1597-cite-footnote.png
Binary files differ
diff --git a/tests/ref/issue-2531-cite-show-set.png b/tests/ref/issue-2531-cite-show-set.png
index 568c77e5..93b69b7d 100644
--- a/tests/ref/issue-2531-cite-show-set.png
+++ b/tests/ref/issue-2531-cite-show-set.png
Binary files differ
diff --git a/tests/ref/issue-3481-cite-location.png b/tests/ref/issue-3481-cite-location.png
index 01139e25..110ee4a2 100644
--- a/tests/ref/issue-3481-cite-location.png
+++ b/tests/ref/issue-3481-cite-location.png
Binary files differ
diff --git a/tests/ref/issue-3699-cite-twice-et-al.png b/tests/ref/issue-3699-cite-twice-et-al.png
index 62921dd6..46b98c39 100644
--- a/tests/ref/issue-3699-cite-twice-et-al.png
+++ b/tests/ref/issue-3699-cite-twice-et-al.png
Binary files differ
diff --git a/tests/ref/issue-4454-footnote-ref-numbering.png b/tests/ref/issue-4454-footnote-ref-numbering.png
index a517d5fb..bf23221a 100644
--- a/tests/ref/issue-4454-footnote-ref-numbering.png
+++ b/tests/ref/issue-4454-footnote-ref-numbering.png
Binary files differ
diff --git a/tests/ref/issue-4618-bibliography-set-heading-level.png b/tests/ref/issue-4618-bibliography-set-heading-level.png
index 3bf2096e..6de2bed2 100644
--- a/tests/ref/issue-4618-bibliography-set-heading-level.png
+++ b/tests/ref/issue-4618-bibliography-set-heading-level.png
Binary files differ
diff --git a/tests/ref/issue-5256-multiple-footnotes-in-footnote.png b/tests/ref/issue-5256-multiple-footnotes-in-footnote.png
index f9c17335..f32d192e 100644
--- a/tests/ref/issue-5256-multiple-footnotes-in-footnote.png
+++ b/tests/ref/issue-5256-multiple-footnotes-in-footnote.png
Binary files differ
diff --git a/tests/ref/issue-5354-footnote-empty-frame-infinite-loop.png b/tests/ref/issue-5354-footnote-empty-frame-infinite-loop.png
index acad56b6..99da601a 100644
--- a/tests/ref/issue-5354-footnote-empty-frame-infinite-loop.png
+++ b/tests/ref/issue-5354-footnote-empty-frame-infinite-loop.png
Binary files differ
diff --git a/tests/ref/issue-5435-footnote-migration-in-floats.png b/tests/ref/issue-5435-footnote-migration-in-floats.png
index 672a5af8..58d71fc7 100644
--- a/tests/ref/issue-5435-footnote-migration-in-floats.png
+++ b/tests/ref/issue-5435-footnote-migration-in-floats.png
Binary files differ
diff --git a/tests/ref/issue-5496-footnote-in-float-never-fits.png b/tests/ref/issue-5496-footnote-in-float-never-fits.png
index 4ae5903d..85851f5a 100644
--- a/tests/ref/issue-5496-footnote-in-float-never-fits.png
+++ b/tests/ref/issue-5496-footnote-in-float-never-fits.png
Binary files differ
diff --git a/tests/ref/issue-5496-footnote-never-fits-multiple.png b/tests/ref/issue-5496-footnote-never-fits-multiple.png
index 24fcf709..000a1074 100644
--- a/tests/ref/issue-5496-footnote-never-fits-multiple.png
+++ b/tests/ref/issue-5496-footnote-never-fits-multiple.png
Binary files differ
diff --git a/tests/ref/issue-5496-footnote-never-fits.png b/tests/ref/issue-5496-footnote-never-fits.png
index 4ae5903d..85851f5a 100644
--- a/tests/ref/issue-5496-footnote-never-fits.png
+++ b/tests/ref/issue-5496-footnote-never-fits.png
Binary files differ
diff --git a/tests/ref/issue-5496-footnote-separator-never-fits.png b/tests/ref/issue-5496-footnote-separator-never-fits.png
index 4fe4fdee..3b342619 100644
--- a/tests/ref/issue-5496-footnote-separator-never-fits.png
+++ b/tests/ref/issue-5496-footnote-separator-never-fits.png
Binary files differ
diff --git a/tests/ref/issue-5503-cite-group-interrupted-by-par-align.png b/tests/ref/issue-5503-cite-group-interrupted-by-par-align.png
index 16633158..8c91ad55 100644
--- a/tests/ref/issue-5503-cite-group-interrupted-by-par-align.png
+++ b/tests/ref/issue-5503-cite-group-interrupted-by-par-align.png
Binary files differ
diff --git a/tests/ref/issue-5503-cite-in-align.png b/tests/ref/issue-5503-cite-in-align.png
index aeb72aa0..eabc4dc3 100644
--- a/tests/ref/issue-5503-cite-in-align.png
+++ b/tests/ref/issue-5503-cite-in-align.png
Binary files differ
diff --git a/tests/ref/issue-622-hide-meta-cite.png b/tests/ref/issue-622-hide-meta-cite.png
index c3c9b188..1fe3f251 100644
--- a/tests/ref/issue-622-hide-meta-cite.png
+++ b/tests/ref/issue-622-hide-meta-cite.png
Binary files differ
diff --git a/tests/ref/issue-758-link-repeat.png b/tests/ref/issue-758-link-repeat.png
index aaec20d2..5db44c31 100644
--- a/tests/ref/issue-758-link-repeat.png
+++ b/tests/ref/issue-758-link-repeat.png
Binary files differ
diff --git a/tests/ref/issue-785-cite-locate.png b/tests/ref/issue-785-cite-locate.png
index d387ed0d..c8031454 100644
--- a/tests/ref/issue-785-cite-locate.png
+++ b/tests/ref/issue-785-cite-locate.png
Binary files differ
diff --git a/tests/ref/issue-footnotes-skip-first-page.png b/tests/ref/issue-footnotes-skip-first-page.png
index b7a8ce62..7e4dbd56 100644
--- a/tests/ref/issue-footnotes-skip-first-page.png
+++ b/tests/ref/issue-footnotes-skip-first-page.png
Binary files differ
diff --git a/tests/ref/linebreak-cite-punctuation.png b/tests/ref/linebreak-cite-punctuation.png
index f544aca4..8e9e945d 100644
--- a/tests/ref/linebreak-cite-punctuation.png
+++ b/tests/ref/linebreak-cite-punctuation.png
Binary files differ
diff --git a/tests/ref/linebreak-link-end.png b/tests/ref/linebreak-link-end.png
index bcc88751..43c771a8 100644
--- a/tests/ref/linebreak-link-end.png
+++ b/tests/ref/linebreak-link-end.png
Binary files differ
diff --git a/tests/ref/linebreak-link-justify.png b/tests/ref/linebreak-link-justify.png
index a80e3074..3175f657 100644
--- a/tests/ref/linebreak-link-justify.png
+++ b/tests/ref/linebreak-link-justify.png
Binary files differ
diff --git a/tests/ref/linebreak-link.png b/tests/ref/linebreak-link.png
index 19eba305..2f6b77ea 100644
--- a/tests/ref/linebreak-link.png
+++ b/tests/ref/linebreak-link.png
Binary files differ
diff --git a/tests/ref/link-basic.png b/tests/ref/link-basic.png
index 0d2bd753..f53223ff 100644
--- a/tests/ref/link-basic.png
+++ b/tests/ref/link-basic.png
Binary files differ
diff --git a/tests/ref/link-bracket-balanced.png b/tests/ref/link-bracket-balanced.png
index 8b7e02db..01bfa879 100644
--- a/tests/ref/link-bracket-balanced.png
+++ b/tests/ref/link-bracket-balanced.png
Binary files differ
diff --git a/tests/ref/link-bracket-unbalanced-closing.png b/tests/ref/link-bracket-unbalanced-closing.png
index f54ad32c..dbd418a0 100644
--- a/tests/ref/link-bracket-unbalanced-closing.png
+++ b/tests/ref/link-bracket-unbalanced-closing.png
Binary files differ
diff --git a/tests/ref/link-show.png b/tests/ref/link-show.png
index ac6df7fe..69e70ac9 100644
--- a/tests/ref/link-show.png
+++ b/tests/ref/link-show.png
Binary files differ
diff --git a/tests/ref/link-to-label.png b/tests/ref/link-to-label.png
index 633ee988..39433c13 100644
--- a/tests/ref/link-to-label.png
+++ b/tests/ref/link-to-label.png
Binary files differ
diff --git a/tests/ref/link-to-page.png b/tests/ref/link-to-page.png
index 2dbf7677..d618f066 100644
--- a/tests/ref/link-to-page.png
+++ b/tests/ref/link-to-page.png
Binary files differ
diff --git a/tests/ref/link-trailing-period.png b/tests/ref/link-trailing-period.png
index b458d201..80e0bd70 100644
--- a/tests/ref/link-trailing-period.png
+++ b/tests/ref/link-trailing-period.png
Binary files differ
diff --git a/tests/ref/link-transformed.png b/tests/ref/link-transformed.png
index 4efa32f3..c391f080 100644
--- a/tests/ref/link-transformed.png
+++ b/tests/ref/link-transformed.png
Binary files differ
diff --git a/tests/ref/math-equation-numbering.png b/tests/ref/math-equation-numbering.png
index b127a9a1..9606b30d 100644
--- a/tests/ref/math-equation-numbering.png
+++ b/tests/ref/math-equation-numbering.png
Binary files differ
diff --git a/tests/ref/measure-citation-deeply-nested.png b/tests/ref/measure-citation-deeply-nested.png
index 596c351e..6711fc73 100644
--- a/tests/ref/measure-citation-deeply-nested.png
+++ b/tests/ref/measure-citation-deeply-nested.png
Binary files differ
diff --git a/tests/ref/measure-citation-in-flow.png b/tests/ref/measure-citation-in-flow.png
index 18617bed..83f92aac 100644
--- a/tests/ref/measure-citation-in-flow.png
+++ b/tests/ref/measure-citation-in-flow.png
Binary files differ
diff --git a/tests/ref/par-semantic-align.png b/tests/ref/par-semantic-align.png
index eda49641..202236ef 100644
--- a/tests/ref/par-semantic-align.png
+++ b/tests/ref/par-semantic-align.png
Binary files differ
diff --git a/tests/ref/quote-cite-format-author-date.png b/tests/ref/quote-cite-format-author-date.png
index 4931969d..dbd6a8d8 100644
--- a/tests/ref/quote-cite-format-author-date.png
+++ b/tests/ref/quote-cite-format-author-date.png
Binary files differ
diff --git a/tests/ref/quote-cite-format-label-or-numeric.png b/tests/ref/quote-cite-format-label-or-numeric.png
index d1dadf0e..22654a0d 100644
--- a/tests/ref/quote-cite-format-label-or-numeric.png
+++ b/tests/ref/quote-cite-format-label-or-numeric.png
Binary files differ
diff --git a/tests/ref/quote-cite-format-note.png b/tests/ref/quote-cite-format-note.png
index 0cde539b..bef078c9 100644
--- a/tests/ref/quote-cite-format-note.png
+++ b/tests/ref/quote-cite-format-note.png
Binary files differ
diff --git a/tests/ref/quote-inline.png b/tests/ref/quote-inline.png
index c09faa3a..9205d683 100644
--- a/tests/ref/quote-inline.png
+++ b/tests/ref/quote-inline.png
Binary files differ
diff --git a/tests/ref/ref-basic.png b/tests/ref/ref-basic.png
index 79655eba..d9068d93 100644
--- a/tests/ref/ref-basic.png
+++ b/tests/ref/ref-basic.png
Binary files differ
diff --git a/tests/ref/ref-form-page-unambiguous.png b/tests/ref/ref-form-page-unambiguous.png
index e7baa2f2..3b37f115 100644
--- a/tests/ref/ref-form-page-unambiguous.png
+++ b/tests/ref/ref-form-page-unambiguous.png
Binary files differ
diff --git a/tests/ref/ref-form-page.png b/tests/ref/ref-form-page.png
index 52fde86d..0cc29a4f 100644
--- a/tests/ref/ref-form-page.png
+++ b/tests/ref/ref-form-page.png
Binary files differ
diff --git a/tests/ref/ref-supplements.png b/tests/ref/ref-supplements.png
index fd715339..e400c1fe 100644
--- a/tests/ref/ref-supplements.png
+++ b/tests/ref/ref-supplements.png
Binary files differ
diff --git a/tests/ref/show-text-citation-smartquote.png b/tests/ref/show-text-citation-smartquote.png
index 604ecc24..fc18b5a5 100644
--- a/tests/ref/show-text-citation-smartquote.png
+++ b/tests/ref/show-text-citation-smartquote.png
Binary files differ
diff --git a/tests/ref/show-text-citation.png b/tests/ref/show-text-citation.png
index a0e68493..e5ae8d31 100644
--- a/tests/ref/show-text-citation.png
+++ b/tests/ref/show-text-citation.png
Binary files differ
diff --git a/tests/ref/show-text-in-citation.png b/tests/ref/show-text-in-citation.png
index 392487bc..6533a4f7 100644
--- a/tests/ref/show-text-in-citation.png
+++ b/tests/ref/show-text-in-citation.png
Binary files differ
diff --git a/tests/ref/table-header-citation.png b/tests/ref/table-header-citation.png
index 46219807..b9463b04 100644
--- a/tests/ref/table-header-citation.png
+++ b/tests/ref/table-header-citation.png
Binary files differ