acceptAll

Like the generic acceptAll, but specialized to Node output: each parsed node is also passed through wrapIfPrimitive, so primitive nodes (e.g. com.quarkdown.core.ast.base.block.Heading) are wrapped into a com.quarkdown.core.ast.quarkdown.FunctionCallNode backed by their stdlib function, both at the top level (see com.quarkdown.core.pipeline.stages.ParsingStage) and inside nested content (see com.quarkdown.core.parser.BlockTokenParser).

Return

a lazy sequence of parsed nodes, with primitives wrapped as function calls

Parameters

visitor

parser to visit each token with

context

context the wrapped calls are registered under

isBlock

whether the produced nodes belong in a block-level position; carried into the resulting wrap so the expander selects the right value→node mapper