paragraph()
ts
function paragraph(value, options?): Node;Defined in: paragraph.ts:82
Builder-element for a paragraph
Parameters
| Parameter | Type | Description |
|---|---|---|
value | string | Node | Content of this element |
options? | ParagraphOptions | Text styles for this paragraph |
Returns
A markdown node
Example
ts
import { define, paragraph } from "@ogs-gmbh/markdown";
const markdown = define(
paragraph("Some sentence", [ "bold", "italic" ])
);
console.assert(
markdown.toString()
);See
Since
1.0.0
Author
Simon Kovtyk