diff --git a/tests/ref/issue-5489-matrix-stray-linebreak.png b/tests/ref/issue-5489-matrix-stray-linebreak.png new file mode 100644 index 000000000..2d278bd5c Binary files /dev/null and b/tests/ref/issue-5489-matrix-stray-linebreak.png differ diff --git a/tests/suite/layout/inline/linebreak.typ b/tests/suite/layout/inline/linebreak.typ index e4b04b245..86a900252 100644 --- a/tests/suite/layout/inline/linebreak.typ +++ b/tests/suite/layout/inline/linebreak.typ @@ -139,3 +139,11 @@ Some texts feature many longer words. Those are often exceedingly challenging to break in a visually pleasing way. + +--- issue-5489-matrix-stray-linebreak --- +#table( + columns: (70pt,) * 1, + align: horizon + center, + stroke: 0.6pt, + [$mat(2241/2210,-71/1105;-71/1105,147/1105)$], +)