diff options
| author | Max <me@mkor.je> | 2024-11-26 12:37:53 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-26 12:37:53 +0000 |
| commit | fd5e642fb495e98bde0f7e7fd16dca7ac355c60a (patch) | |
| tree | 0d748921e20f4258f68f1267dcd6a367a3a40396 /crates | |
| parent | 6d35972c3d2caaea3d6e358f6af121ba37881dbb (diff) | |
Tags shouldn't affect row height in equations (#5458)
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/typst-layout/src/math/run.rs | 5 |
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. |
