import r from"@markdoc/markdoc";import{isStringNode as n}from"../helpers/guards/is-string-node.js";const o=r.nodes.item,a=e=>e.match(/^\[[x ]\]/i),c=e=>!e.startsWith("[ ]"),h={...o,transform(e,s){const i=e.transformAttributes(s);let t=e.transformChildren(s);return n(t[0])&&a(t[0])&&(t=[new r.Tag("input",{checked:c(t[0]),type:"checkbox",readOnly:!0},[]),t[0].substring(3),...t.slice(1)]),new r.Tag("li",i,t)}};export{h as item};
