container()
ts
function container(
type,
value,
title?): Node;Defined in: container.ts:30
Builder-element for a container
Parameters
| Parameter | Type | Description |
|---|---|---|
type | string | Type of this element |
value | string | Node | Content of this element |
title? | string | Title of this element |
Returns
A markdown node
Example
ts
import { define, container } from "@ogs-gmbh/markdown";
const markdown = define(
container("important", "I like this lib", "Important!")
);
console.assert(
markdown.toString()
);See
https://vitepress.dev/guide/markdown#custom-containers
Since
1.0.0
Author
Simon Kovtyk