diff options
| author | Martin <mhaug@live.de> | 2021-08-23 23:56:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-23 23:56:33 +0200 |
| commit | d546453880721d7a12ea228e5c1ed6c65b653ca2 (patch) | |
| tree | 6dee8615a0755f2376d557328eee070de2dcb744 /tests/typ | |
| parent | 0806af4aecc9414962b13894a2a3c4befd2ca3c8 (diff) | |
Links! (#43)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
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.] |
