diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/issue-758-link-repeat.png | bin | 0 -> 1836 bytes | |||
| -rw-r--r-- | tests/ref/link-empty-block.png | bin | 0 -> 96 bytes | |||
| -rw-r--r-- | tests/ref/link-on-block.png | bin | 2422 -> 2355 bytes | |||
| -rw-r--r-- | tests/suite/model/link.typ | 11 |
4 files changed, 11 insertions, 0 deletions
diff --git a/tests/ref/issue-758-link-repeat.png b/tests/ref/issue-758-link-repeat.png Binary files differnew file mode 100644 index 00000000..aaec20d2 --- /dev/null +++ b/tests/ref/issue-758-link-repeat.png diff --git a/tests/ref/link-empty-block.png b/tests/ref/link-empty-block.png Binary files differnew file mode 100644 index 00000000..ae10bdcf --- /dev/null +++ b/tests/ref/link-empty-block.png diff --git a/tests/ref/link-on-block.png b/tests/ref/link-on-block.png Binary files differindex 8fb7f6c6..eeeb264b 100644 --- a/tests/ref/link-on-block.png +++ b/tests/ref/link-on-block.png 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)) |
