summaryrefslogtreecommitdiff
path: root/tests/suite
diff options
context:
space:
mode:
authorMax <me@mkor.je>2024-10-01 08:01:28 +0000
committerGitHub <noreply@github.com>2024-10-01 08:01:28 +0000
commit8eee3ec8d1b4d960017cb558887bd6180cc99cea (patch)
tree316835fb26b0302551a291699cc51c0a0025eecd /tests/suite
parent4ef1096ad99059fd86526ed819bf8a7abd3aef2b (diff)
Fix breakable block equation overflow (#5078)
Diffstat (limited to 'tests/suite')
-rw-r--r--tests/suite/math/multiline.typ17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/suite/math/multiline.typ b/tests/suite/math/multiline.typ
index 8377b93e..3c0ed2f4 100644
--- a/tests/suite/math/multiline.typ
+++ b/tests/suite/math/multiline.typ
@@ -130,6 +130,23 @@ $ a &+ b + & c \
& & c && + d \
&= 0 $
+--- math-pagebreaking-single-line ---
+// Test breaking of single line equations.
+#set page(height: 4em)
+#show math.equation: set block(breakable: true)
+
+Shouldn't overflow:
+$ a + b $
+
+--- math-pagebreaking-single-line-numbered ---
+// Test breaking of single line equations with numbering.
+#set page(height: 4em)
+#show math.equation: set block(breakable: true)
+#set math.equation(numbering: "(1)")
+
+Shouldn't overflow:
+$ a + b $
+
--- issue-1948-math-text-break ---
// Test text with linebreaks in math.
$ x := "a\nb\nc\nd\ne" $