Trilium Backend API
    Preparing search index...
    prevUntil: <T extends AnyNode>(
        this: Cheerio<T>,
        selector?: AcceptedFilters<Element> | null,
        filterSelector?: AcceptedFilters<Element>,
    ) => Cheerio<Element>

    Gets all the preceding siblings up to but not including the element matched by the selector, optionally filtered by another selector.

    Type Declaration

    $('.pear').prevUntil('.apple');
    //=> [<li class="orange">Orange</li>]