summaryrefslogtreecommitdiff
path: root/tests/suite/html/syntax.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2025-06-23 14:30:22 +0200
committerLaurenz <laurmaedje@gmail.com>2025-06-23 15:56:01 +0200
commitf8dc1ad3bdbe20ec25379427e6afba36c75ec08c (patch)
tree84dca4a33f24d8ea065eff30d142263be9cfdcb6 /tests/suite/html/syntax.typ
parent9050ee1639a20463e3cafce58964c9ef0fa38205 (diff)
Handle pre elements that start with a newline
Diffstat (limited to 'tests/suite/html/syntax.typ')
-rw-r--r--tests/suite/html/syntax.typ5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/suite/html/syntax.typ b/tests/suite/html/syntax.typ
index c95fa06e..fb5caf3b 100644
--- a/tests/suite/html/syntax.typ
+++ b/tests/suite/html/syntax.typ
@@ -5,3 +5,8 @@
--- html-void-element-with-children html ---
// Error: 2-27 HTML void elements must not have children
#html.elem("img", [Hello])
+
+--- html-pre-starting-with-newline html ---
+#html.pre("hello")
+#html.pre("\nhello")
+#html.pre("\n\nhello")