| 1570 | ); |
| 1571 | } |
| 1572 | listitem(e) { |
| 1573 | let t = ""; |
| 1574 | if (e.task) { |
| 1575 | let n = this.checkbox({ checked: !!e.checked }); |
| 1576 | e.loose |
| 1577 | ? e.tokens[0]?.type === "paragraph" |
| 1578 | ? ((e.tokens[0].text = n + " " + e.tokens[0].text), |
| 1579 | e.tokens[0].tokens && |
| 1580 | e.tokens[0].tokens.length > 0 && |
| 1581 | e.tokens[0].tokens[0].type === "text" && |
| 1582 | ((e.tokens[0].tokens[0].text = |
| 1583 | n + " " + R(e.tokens[0].tokens[0].text)), |
| 1584 | (e.tokens[0].tokens[0].escaped = !0))) |
| 1585 | : e.tokens.unshift({ |
| 1586 | type: "text", |
| 1587 | raw: n + " ", |
| 1588 | text: n + " ", |
| 1589 | escaped: !0, |
| 1590 | }) |
| 1591 | : (t += n + " "); |
| 1592 | } |
| 1593 | return ( |
| 1594 | (t += this.parser.parse(e.tokens, !!e.loose)), |
| 1595 | `<li>${t}</li> |
| 1596 | ` |
| 1597 | ); |
| 1598 | } |
| 1599 | checkbox({ checked: e }) { |
| 1600 | return ( |
| 1601 | "<input " + (e ? 'checked="" ' : "") + 'disabled="" type="checkbox">' |