diff options
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/text/links.typ | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/typ/text/links.typ b/tests/typ/text/links.typ new file mode 100644 index 00000000..eabb316a --- /dev/null +++ b/tests/typ/text/links.typ @@ -0,0 +1,12 @@ +// Link without body. +#link("https://example.com/") + +// Link with body. +#link("https://typst.app/")[Some text text text] + +// With line break. +This link appears #link("https://google.com/")[in the middle of] a paragraph. + +// Styled with underline and color. +#let link(url, body) = link(url, [#font(fill: rgb("283663")) #underline(body)]) +You could also make the #link("https://html5zombo.com/")[link look way more typical.] |
