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

    Interface BitSpan

    Where one top-level bit's text is in the input and in the output.

    interface BitSpan {
        index: number;
        inputEnd: number;
        inputStart: number;
        outputEnd: number;
        outputStart: number;
    }
    Index
    index: number

    The bit's position in the INPUT: its splitBits index for bitmark input, its entry index in the top-level array for JSON input, its position among the bits the import finds for markup input. An entry that is not a bit gets no span, so the indexes can have gaps.

    inputEnd: number

    Offset just past its last character in the input. A markup element that holds the next bit's element ends where that element starts.

    inputStart: number

    Offset of the bit's first character in the input: for bitmark, its splitBits start; for JSON, the start of its top-level entry; for markup, the start of the element it was read from.

    outputEnd: number

    Offset just past its last character in the output. A bit that produced no output (e.g. an empty bit in "text" output) has outputEnd === outputStart, at the point where its output would begin.

    outputStart: number

    Offset of the bit's first character in the output.