@gmb/bitmark-parser - v7.2.0
    Preparing search index...

    Function canonicalize

    • Re-emit input in its own format in canonical form — the single same-format surface (the former optimize/fullize/expand were pure mode pins of this function and were removed).

      Parameters

      • input: string

        Input text (bitmark, JSON, or a markup format such as html/xml).

      • options: CanonicalizeOptions = {}

        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.

      Returns string