Markdown list item.

interface ListItem {
    checked?: null | boolean;
    children: (BlockContent | DefinitionContent)[];
    data?: ListItemData;
    position?: "/home/runner/work/astro-node-fastify/astro-node-fastify/node_modules/@types/unist/index".Position;
    spread?: null | boolean;
    type: "listItem";
}

Hierarchy (view full)

Properties

checked?: null | boolean

Whether the item is a tasklist item (when boolean).

When true, the item is complete. When false, the item is incomplete.

Children of list item.

Data associated with the mdast list item.

Position of a node in a source document.

Nodes that are generated (not in the original source document) must not have a position.

spread?: null | boolean

Whether one or more of the children are separated with a blank line from its siblings (when true), or not (when false or not present).

type: "listItem"

Node type of mdast list item.