summaryrefslogtreecommitdiff
path: root/tests/typ/style/show-node.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-09 18:16:59 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-09 18:20:02 +0100
commit010cc2effc2fd0e1c4e52d5c914cb4d74506bc0a (patch)
treee50060d271f076b00945e5569e7f8ffef2c28e9f /tests/typ/style/show-node.typ
parent12a59963b08b68cc39dcded4d3d3e6a6631c2732 (diff)
New block spacing model
Diffstat (limited to 'tests/typ/style/show-node.typ')
-rw-r--r--tests/typ/style/show-node.typ7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/typ/style/show-node.typ b/tests/typ/style/show-node.typ
index 4b0542e5..51b4734e 100644
--- a/tests/typ/style/show-node.typ
+++ b/tests/typ/style/show-node.typ
@@ -2,7 +2,6 @@
---
// Override lists.
-#set list(around: none)
#show list: it => "(" + it.items.join(", ") + ")"
- A
@@ -13,7 +12,6 @@
---
// Test full reset.
-#set heading(around: none)
#show heading: [B]
#show heading: text.with(size: 10pt, weight: 400)
A [= Heading] C
@@ -21,7 +19,6 @@ A [= Heading] C
---
// Test full removal.
#show heading: none
-#set heading(around: none)
Where is
= There are no headings around here!
@@ -29,7 +26,7 @@ my heading?
---
// Test integrated example.
-#show heading: it => {
+#show heading: it => block({
set text(10pt)
move(dy: -1pt)[📖]
h(5pt)
@@ -38,7 +35,7 @@ my heading?
} else {
text(red, it.body)
}
-}
+})
= Task 1
Some text.