diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-20 18:19:01 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-20 18:20:19 +0100 |
| commit | 38a0404050b1f6725db1bfd357a41539ef4d9973 (patch) | |
| tree | 068c57372d255900ecb727ced593143d49cf2b8f /tests/typ | |
| parent | 08daade59f3e0005916881fddd1a774a86278fbb (diff) | |
Document underline, strikethrough, and overline
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/basics/heading.typ | 4 | ||||
| -rw-r--r-- | tests/typ/compiler/show-node.typ | 6 | ||||
| -rw-r--r-- | tests/typ/compute/calc.typ | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/typ/basics/heading.typ b/tests/typ/basics/heading.typ index 9fd4e648..4e9550b9 100644 --- a/tests/typ/basics/heading.typ +++ b/tests/typ/basics/heading.typ @@ -1,7 +1,7 @@ // Test headings. --- -#show heading: it => text(blue, it.body) +#show heading: it => text(blue, it.title) = No heading @@ -44,7 +44,7 @@ multiline. --- // Test styling. #show heading.where(level: 5): it => block( - text(family: "Roboto", fill: eastern, it.body + [!]) + text(family: "Roboto", fill: eastern, it.title + [!]) ) = Heading diff --git a/tests/typ/compiler/show-node.typ b/tests/typ/compiler/show-node.typ index f14fb002..5dd7ad98 100644 --- a/tests/typ/compiler/show-node.typ +++ b/tests/typ/compiler/show-node.typ @@ -31,9 +31,9 @@ my heading? move(dy: -1pt)[📖] h(5pt) if it.level == 1 { - underline(text(1.25em, blue, it.body)) + underline(text(1.25em, blue, it.title)) } else { - text(red, it.body) + text(red, it.title) } }) @@ -51,7 +51,7 @@ Another text. #show heading: it => { set text(red) show "ding": [🛎] - it.body + it.title } = Heading diff --git a/tests/typ/compute/calc.typ b/tests/typ/compute/calc.typ index bc6ef7f6..be207a05 100644 --- a/tests/typ/compute/calc.typ +++ b/tests/typ/compute/calc.typ @@ -39,7 +39,7 @@ #test(abs(-25%), 25%) --- -// Error: 6-17 expected integer, float, angle, ratio, or fraction, found string +// Error: 6-17 expected integer, float, length, angle, ratio, or fraction, found string #abs("no number") --- |
