typst-0.9: test/typ/meta/link-00.out
--- parse tree ---
[ Comment
, SoftBreak
, Url "https://example.com/"
, ParBreak
, Comment
, SoftBreak
, Code
"typ/meta/link-00.typ"
( line 5 , column 2 )
(FuncCall
(Ident (Identifier "link"))
[ NormalArg (Literal (String "https://typst.org/"))
, BlockArg
[ Text "Some"
, Space
, Text "text"
, Space
, Text "text"
, Space
, Text "text"
]
])
, ParBreak
, Comment
, SoftBreak
, Text "This"
, Space
, Text "link"
, Space
, Text "appears"
, Space
, Code
"typ/meta/link-00.typ"
( line 8 , column 20 )
(FuncCall
(Ident (Identifier "link"))
[ NormalArg (Literal (String "https://google.com/"))
, BlockArg
[ Text "in"
, Space
, Text "the"
, Space
, Text "middle"
, Space
, Text "of"
]
])
, Space
, Text "a"
, Space
, Text "paragraph"
, Text "."
, ParBreak
, Comment
, SoftBreak
, Text "Contact"
, Space
, Code
"typ/meta/link-00.typ"
( line 11 , column 10 )
(FuncCall
(Ident (Identifier "link"))
[ NormalArg (Literal (String "mailto:hi@typst.app")) ])
, Space
, Text "or"
, SoftBreak
, Text "call"
, Space
, Code
"typ/meta/link-00.typ"
( line 12 , column 7 )
(FuncCall
(Ident (Identifier "link"))
[ NormalArg (Literal (String "tel:123")) ])
, Space
, Text "for"
, Space
, Text "more"
, Space
, Text "information"
, Text "."
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
link(body: [https://example.com/],
dest: "https://example.com/"),
parbreak(),
text(body: [
]),
link(body: text(body: [Some text text text]),
dest: "https://typst.org/"),
parbreak(),
text(body: [
This link appears ]),
link(body: text(body: [in the middle of]),
dest: "https://google.com/"),
text(body: [ a paragraph.]),
parbreak(),
text(body: [
Contact ]),
link(dest: "mailto:hi@typst.app"),
text(body: [ or
call ]),
link(dest: "tel:123"),
text(body: [ for more information.]),
parbreak() })