From fd5e642fb495e98bde0f7e7fd16dca7ac355c60a Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 26 Nov 2024 12:37:53 +0000 Subject: Tags shouldn't affect row height in equations (#5458) --- crates/typst-layout/src/math/run.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crates/typst-layout') diff --git a/crates/typst-layout/src/math/run.rs b/crates/typst-layout/src/math/run.rs index 8f12c509..b07f5893 100644 --- a/crates/typst-layout/src/math/run.rs +++ b/crates/typst-layout/src/math/run.rs @@ -419,7 +419,10 @@ impl MathRunFrameBuilder { } fn affects_row_height(fragment: &MathFragment) -> bool { - !matches!(fragment, MathFragment::Align | MathFragment::Linebreak) + !matches!( + fragment, + MathFragment::Align | MathFragment::Linebreak | MathFragment::Tag(_) + ) } /// Create the spacing between two fragments in a given style. -- cgit v1.2.3