Skip to content

alert()

ts
function alert(type, value): Node;

Defined in: alert.ts:38

Builder-element for an alert

Parameters

ParameterTypeDescription
typeAlertTypeType of this element
valuestring | NodeContent of this element

Returns

Node

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

https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts

Since

1.0.0

Author

Simon Kovtyk