summaryrefslogtreecommitdiff
path: root/crates/typst-layout
diff options
context:
space:
mode:
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.