typst-0.7: test/typ/meta/ref-00.out
--- parse tree ---
[ Code
"typ/meta/ref-00.typ"
( line 1 , column 2 )
(Let
(BasicBind (Just (Identifier "test")))
(FuncExpr
[ NormalParam (Identifier "x") , NormalParam (Identifier "y") ]
(Block
(CodeBlock
[ If
[ ( Equals (Ident (Identifier "x")) (Ident (Identifier "y"))
, Block (Content [ Text "\9989" ])
)
, ( Literal (Boolean True)
, Block
(Content
[ Text "\10060"
, Text "("
, Code
"typ/meta/ref-00.typ"
( line 1 , column 47 )
(FuncCall
(Ident (Identifier "repr"))
[ NormalArg (Ident (Identifier "x")) ])
, Space
, Text "/"
, Text "="
, Space
, Code
"typ/meta/ref-00.typ"
( line 1 , column 59 )
(FuncCall
(Ident (Identifier "repr"))
[ NormalArg (Ident (Identifier "y")) ])
, Text ")"
])
)
]
]))))
, SoftBreak
, Code
"typ/meta/ref-00.typ"
( line 2 , column 2 )
(Set
(Ident (Identifier "heading"))
[ KeyValArg (Identifier "numbering") (Literal (String "1.")) ])
, ParBreak
, Heading 1 [ Text "Introduction" ]
, Code "typ/meta/ref-00.typ" ( line 4 , column 16 ) (Label "intro")
, SoftBreak
, Text "See"
, Space
, Ref "setup" (Literal Auto)
, Text "."
, ParBreak
, Heading 2 [ Text "Setup" ]
, Code "typ/meta/ref-00.typ" ( line 7 , column 10 ) (Label "setup")
, SoftBreak
, Text "As"
, Space
, Text "seen"
, Space
, Text "in"
, Space
, Ref "intro" (Literal Auto)
, Text ","
, Space
, Text "we"
, Space
, Text "proceed"
, Text "."
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
parbreak(),
heading(body: text(body: [Introduction]),
level: 1,
numbering: "1."),
<intro>,
text(body: [
See ]),
ref(supplement: auto,
target: <setup>),
text(body: [.]),
parbreak(),
heading(body: text(body: [Setup]),
level: 2,
numbering: "1."),
<setup>,
text(body: [
As seen in ]),
ref(supplement: auto,
target: <intro>),
text(body: [, we proceed.]),
parbreak() })