alert()
ts
function alert(type, value): Node;Defined in: alert.ts:38
Builder-element for an alert
Parameters
| Parameter | Type | Description |
|---|---|---|
type | AlertType | Type of this element |
value | string | Node | Content of this element |
Returns
A markdown node
Example
ts
import { define, alert } from "@ogs-gmbh/markdown";
const markdown = define(
alert("important", "I like this lib")
);
console.assert(
markdown.toString()
);See
Since
1.0.0
Author
Simon Kovtyk