diff options
Diffstat (limited to 'tests/typ/meta/link.typ')
| -rw-r--r-- | tests/typ/meta/link.typ | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/typ/meta/link.typ b/tests/typ/meta/link.typ index de4c91c9..36f88f90 100644 --- a/tests/typ/meta/link.typ +++ b/tests/typ/meta/link.typ @@ -23,6 +23,22 @@ Nohttps:\//link \ Nohttp\://comment --- +// Verify that brackets are included in links. +https://[::1]:8080/ \ +https://example.com/(paren) \ +https://example.com/#(((nested))) \ + +--- +// Check that unbalanced brackets are not included in links. +#[https://example.com/] \ +https://example.com/) + +--- +// Verify that opening brackets without closing brackets throw an error. +// Error: 22-22 expected closing bracket in link +https://exam(ple.com/ + +--- // Styled with underline and color. #show link: it => underline(text(fill: rgb("283663"), it)) You could also make the |
