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

    Get the parent of each element in the current set of matched elements, optionally filtered by a selector.

    Type Declaration

    $('.pear').parent().attr('id');
    //=> fruits