list()
ts
function list(type, ...nodes): Node;Defined in: list.ts:38
Builder-element for a list
Parameters
| Parameter | Type | Description |
|---|---|---|
type | ListType | Type of list |
...nodes | (string | Node | null | undefined)[] | Items of the list |
Returns
A markdown node
Example
ts
import { define, list } from "@ogs-gmbh/markdown";
const markdown = define(
list("unordered", "Computer", "Remote control");
);
console.assert(
markdown.toString()
);See
Since
1.0.0
Author
Simon Kovtyk