Function: $createCodeBlockNode()

$createCodeBlockNode(options): CodeBlockNode

Creates a CodeBlockNode.

Parameters

ParameterTypeDescription
optionsPartial<CreateCodeBlockNodeOptions>The code contents, the language (i.e. js, jsx, etc.), and the additional meta data of the block.

Returns

CodeBlockNode