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

    Get a set of parents filtered by selector of each element in the current set of match elements.

    Type Declaration

    $('.orange').parents().length;
    //=> 2
    $('.orange').parents('#fruits').length;
    //=> 1