Input text (bitmark, JSON, or a markup format such as html/xml).
mode: "optimized" (default — omit natural defaults) or
"full" (emit all keys). inputFormat selects the format (default:
"auto"; prefer explicit — see convert); the output is
re-emitted in that same format.
Re-emit input in its own format in canonical form — the single same-format surface (the former
optimize/fullize/expandwere pure mode pins of this function and were removed).