typst/tests/typ/text/links.typ
Martin d546453880
Links! (#43)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2021-08-23 23:56:33 +02:00

13 lines
423 B
Typst

// 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.]