fn(node$0, raw_text$1) =>
match $0 {
#element(element$2) =>
match @html.is-void-element(name: $2.name) {
true =>
@core.string-join(items: ["<", $2.name, @html.attributes-to-string(attributes: $2.attributes), ">"], separator: ""),
false =>
@core.string-join(
items: [
"<",
$2.name,
@html.attributes-to-string(attributes: $2.attributes),
">",
@html.nodes-to-string-in(nodes: $2.children, raw_text: @html.is-raw-text-element(name: $2.name)),
"</",
$2.name,
">"
],
separator: ""
)
},
#text(text$3) =>
match $1 {
true =>
$3,
false =>
@html.escape-text(text: $3)
}
}