Vizel API / core/src / initializeVizelMarkdownContent
Function: initializeVizelMarkdownContent()
ts
function initializeVizelMarkdownContent(
editor,
markdown,
options?): void;Defined in: packages/core/src/utils/markdown.ts:105
Initialize editor with markdown content. This should be called in onCreate callback when using initialMarkdown.
Parameters
| Parameter | Type | Description |
|---|---|---|
editor | Editor | The editor instance |
markdown | string | The markdown content to set |
options | { transformDiagrams?: boolean; } | Options for initialization |
options.transformDiagrams? | boolean | - |
Returns
void