Trilium Backend API
    Preparing search index...
    • Insert every element in the set of matched elements before the target.

      Type Parameters

      Parameters

      Returns Cheerio<T>

      The set of newly inserted elements.

      $('<li class="plum">Plum</li>').insertBefore('.apple');
      $.html();
      //=> <ul id="fruits">
      // <li class="plum">Plum</li>
      // <li class="apple">Apple</li>
      // <li class="orange">Orange</li>
      // <li class="pear">Pear</li>
      // </ul>