UNPKG

shelving

Version:

Toolkit for using data in JavaScript.

16 lines (15 loc) 1.04 kB
import type { ReactElement } from "react"; import type { MarkupParser } from "../MarkupParser.js"; /** * Unordered list. * - Line starting with `-`, `*`, `•`, or `+` character followed by one or more space characters. * - No spaces can appear before the bullet character. * - Second-level list can be created by indenting with `\t` one tab. * - List block runs until a blank line that is not followed by another item or an indented continuation line. * - A list with blank lines between its items (or before a continuation paragraph) is "loose": its items are wrapped in `<p>` tags. * - An item starting with `[ ]` or `[x]` (case-insensitive) is a todo item: a checkbox `<input>` plus the content wrapped in a `<label>` so clicking it toggles the checkbox. * - Sparse lists are not supported. */ export declare const UNORDERED_RULE: import("../MarkupRule.js").MarkupRule; /** Parse a markdown list into a set of items elements. */ export declare function _getItems(list: string, parser: MarkupParser): Iterable<ReactElement>;