UNPKG

@forbespro/lead-agent

Version:
2 lines (1 loc) 544 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function p(r,t){const s={},l=r.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(s.start=t.start);++a<l.length;){const e=l[a];if(e.type==="element"&&e.tagName==="li"&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){s.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:s,children:r.wrap(l,!0)};return r.patch(t,i),r.applyData(t,i)}exports.list=p;