linebreak()
ts
function linebreak(type): Node;Defined in: linebreak.ts:43
Builder-element for a linebreak
Parameters
| Parameter | Type | Description |
|---|---|---|
type | LinebreakType | Type of this element |
Returns
A markdown node
Example
ts
import { define, linebreak, paragraph } from "@ogs-gmbh/markdown";
const markdown = define(
paragraph("Here a leading sentence..."),
linebreak("html"),
paragraph("...and here the trailing one.")
);
console.assert(
markdown.toString()
);See
Since
1.0.0
Author
Simon Kovtyk