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

    Function convert

    • Convert between bitmark, JSON, and the mapped markup formats (html/xml/…) — the single string-based conversion surface.

      The markup formats need a wasm variant built with markup; on bitmark-json they throw an unsupported error.

      Performance: inputFormat defaults to "auto", which detects the format by scanning the input for a bitmark bit header — for non-bitmark input that is a full pass over the whole input before parsing starts, and the detection is heuristic (markup formats are never auto-detected). If you know the input format, set inputFormat explicitly. For typed objects use bitmarkToObjects / objectsToBitmark, which pin their formats.

      Parameters

      • input: string

        Bitmark, JSON, or mapped-format input text.

      • options: ConvertOptions = {}

        Convert options (e.g. { inputFormat: "bitmark", mode: "full" }).

      Returns string

      Converted output string. For bitmark input, this is a JSON string array of structured parsed entries (bit, parser, bitmark).