diff options
| author | Laurenz <laurmaedje@gmail.com> | 2025-01-22 14:24:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-22 13:24:14 +0000 |
| commit | 6fcc4322845482c1810c26ee7f6fc8f6fed20d7d (patch) | |
| tree | 93f20518774529d90d7f07b6de5122fe64218748 /tests/suite | |
| parent | b45f574703f674c962e8678b4af0aabe081216a1 (diff) | |
Don't link items if container is already linked (#5732)
Diffstat (limited to 'tests/suite')
| -rw-r--r-- | tests/suite/model/link.typ | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/suite/model/link.typ b/tests/suite/model/link.typ index 7cced856..bd6c8a30 100644 --- a/tests/suite/model/link.typ +++ b/tests/suite/model/link.typ @@ -75,3 +75,14 @@ Text <hey> Text <hey> // Error: 2-20 label `<hey>` occurs multiple times in the document #link(<hey>)[Nope.] + +--- link-empty-block --- +#link("", block(height: 10pt, width: 100%)) + +--- issue-758-link-repeat --- +#let url = "https://typst.org/" +#let body = [Hello #box(width: 1fr, repeat[.])] + +Inline: #link(url, body) + +#link(url, block(inset: 4pt, [Block: ] + body)) |
