diff options
| author | frozolotl <44589151+frozolotl@users.noreply.github.com> | 2023-03-30 21:26:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-30 21:26:43 +0200 |
| commit | ed36ef3312c09c2f0f1d4a6f620772fccd064e50 (patch) | |
| tree | edbb3bbf50bbd809e337fa3988ebaac2df91d0d7 /tests | |
| parent | 5aa2ba14906a83706849e06581e511d49f66ac49 (diff) | |
Add support for more characters in links (#379)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/meta/link.png | bin | 52099 -> 92205 bytes | |||
| -rw-r--r-- | tests/typ/meta/link.typ | 16 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/ref/meta/link.png b/tests/ref/meta/link.png Binary files differindex 4e182e9b..075ca6e1 100644 --- a/tests/ref/meta/link.png +++ b/tests/ref/meta/link.png 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 |
