rmapi-js
    Preparing search index...

    Interface Highlight

    a single text-highlight fragment on a pdf or epub page

    reMarkable splits one highlighted passage into a fragment per line it spans.

    interface Highlight {
        color: number;
        length: number;
        rects: HighlightRect[];
        start: number;
        text: string;
    }
    Index
    color: number

    [speculative] an index into the highlight palette, not the pen palette

    length: number

    the number of characters highlighted

    rects: HighlightRect[]

    the rectangles the highlight spans, one per line

    start: number

    the character offset of the highlight within the page's text

    text: string

    the highlighted text