typst-0.9: test/typ/compiler/show-node-04.out
--- parse tree ---
[ Comment
, SoftBreak
, Code
"typ/compiler/show-node-04.typ"
( line 2 , column 2 )
(Show
(Just (Ident (Identifier "heading")))
(FuncExpr
[ NormalParam (Identifier "it") ]
(Block
(CodeBlock
[ Set
(Ident (Identifier "text"))
[ NormalArg (Ident (Identifier "red")) ]
, Show
(Just (Literal (String "ding")))
(Block (Content [ Text "\128718" ]))
, FieldAccess (Ident (Identifier "body")) (Ident (Identifier "it"))
]))))
, ParBreak
, Heading 1 [ Text "Heading" ]
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
parbreak(),
text(body: { [Hea],
text(body: [🛎],
color: rgb(100%,25%,21%,100%)),
[] }) })