diff options
| author | tingerrr <github@tinger.dev> | 2023-09-25 16:19:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-25 16:19:48 +0200 |
| commit | 0710d1c118efaca52e5151ece32f758f163086b6 (patch) | |
| tree | c2adfa7874d2988538d23542ff344c931ef89cf9 /tests/typ/text | |
| parent | 063e9afccf74201e0d4a8041b48a7a5028e905c3 (diff) | |
Add `background` parameter to `overline`, `underline` and `strike` (#2219)
Diffstat (limited to 'tests/typ/text')
| -rw-r--r-- | tests/typ/text/deco.typ | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/typ/text/deco.typ b/tests/typ/text/deco.typ index b79b80b2..dbf86a86 100644 --- a/tests/typ/text/deco.typ +++ b/tests/typ/text/deco.typ @@ -57,3 +57,19 @@ We can also specify a customized value #set highlight(top-edge: "bounds", bottom-edge: "bounds") #highlight[abc] #highlight[abc #sym.integral] + +--- +// Test underline background +#set underline(background: true, stroke: (thickness: 0.5em, paint: red, cap: "round")) +#underline[This is in the background] + +--- +// Test overline background +#set overline(background: true, stroke: (thickness: 0.5em, paint: red, cap: "round")) +#overline[This is in the background] + + +--- +// Test strike background +#set strike(background: true, stroke: 5pt + red) +#strike[This is in the background] |
