topLevel controls whether the trailing implicit-default footnote
block is allowed to be suppressed. The top-level serialize() entry
point passes true (default suppression matches the parser's
auto-append). Every nested caller — collapsible bodies, list items,
table cells, tab panels, definition-list entries, etc. — defaults to
false so that an explicit [[footnoteblock]] inside a container is
always preserved on serialization; otherwise it would round-trip into
a silent removal.
Serialize an array of AST elements in order.
topLevelcontrols whether the trailing implicit-default footnote block is allowed to be suppressed. The top-levelserialize()entry point passestrue(default suppression matches the parser's auto-append). Every nested caller — collapsible bodies, list items, table cells, tab panels, definition-list entries, etc. — defaults tofalseso that an explicit[[footnoteblock]]inside a container is always preserved on serialization; otherwise it would round-trip into a silent removal.