summaryrefslogtreecommitdiff
path: root/crates/typst-layout
diff options
context:
space:
mode:
authorMax <me@mkor.je>2024-11-26 12:37:53 +0000
committerGitHub <noreply@github.com>2024-11-26 12:37:53 +0000
commitfd5e642fb495e98bde0f7e7fd16dca7ac355c60a (patch)
tree0d748921e20f4258f68f1267dcd6a367a3a40396 /crates/typst-layout
parent6d35972c3d2caaea3d6e358f6af121ba37881dbb (diff)
Tags shouldn't affect row height in equations (#5458)
Diffstat (limited to 'crates/typst-layout')
-rw-r--r--crates/typst-layout/src/math/run.rs5
1 files changed, 4 insertions, 1 deletions
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.