in src/render/HTMLRenderer.php [127:148]
protected function renderTaskListItemExtension(
Blocks\ListOfItems $list,
Blocks\TaskListItemExtension $item,
): string {
$checked = $item->isChecked() ? ' checked=""' : '';
$checkbox = '<input'.$checked.' disabled="" type="checkbox"> ';
$children = $item->getChildren();
$first = C\first($children);
if ($first is Blocks\Paragraph) {
$children[0] = new Blocks\Paragraph(
Vec\concat(vec[new Inlines\RawHTML($checkbox)], $first->getContents()),
);
} else {
$children = Vec\concat(vec[new Blocks\HTMLBlock($checkbox)], $children);
}
return $this->renderListItem(
$list,
new Blocks\ListItem($item->getNumber(), $children),
);
}