summaryrefslogtreecommitdiff
path: root/tests/suite/model/enum.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/suite/model/enum.typ')
-rw-r--r--tests/suite/model/enum.typ38
1 files changed, 30 insertions, 8 deletions
diff --git a/tests/suite/model/enum.typ b/tests/suite/model/enum.typ
index 288392d4..7176b04e 100644
--- a/tests/suite/model/enum.typ
+++ b/tests/suite/model/enum.typ
@@ -183,22 +183,44 @@ a + 0.
#set enum(number-align: horizon)
#set enum(number-align: bottom)
+--- enum-par render html ---
+// Check whether the contents of enum items become paragraphs.
+#show par: it => if target() != "html" { highlight(it) } else { it }
+
+// No paragraphs.
+#block[
+ + Hello
+ + World
+]
+
+#block[
+ + Hello // Paragraphs
+
+ From
+ + World // No paragraph because it's a tight enum
+]
+
+#block[
+ + Hello // Paragraphs
+
+ From
+
+ The
+
+ + World // Paragraph because it's a wide enum
+]
+
--- issue-2530-enum-item-panic ---
// Enum item (pre-emptive)
#enum.item(none)[Hello]
#enum.item(17)[Hello]
---- issue-5503-enum-interrupted-by-par-align ---
-// `align` is block-level and should interrupt an enum
-// but not a `par`
+--- issue-5503-enum-in-align ---
+// `align` is block-level and should interrupt an enum.
+ a
+ b
-#par(leading: 5em)[+ par]
+#align(right)[+ c]
+ d
-#par[+ par]
-+ f
-#align(right)[+ align]
-+ h
--- issue-5719-enum-nested ---
// Enums can be immediately nested.