Skip to content

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

ParameterTypeDescription
editorEditorThe editor instance
markdownstringThe markdown content to set
options{ transformDiagrams?: boolean; }Options for initialization
options.transformDiagrams?boolean-

Returns

void

Released under the MIT License.