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