Skip to content

recordCodeBlockRenderHandoff

Records a handoff for the next render of a code block a write is about to change.

Import:

import { recordCodeBlockRenderHandoff } from '@mnaoumov/obsidian-lib/code-block-render-handoff';

Signature:

function recordCodeBlockRenderHandoff(params: RecordCodeBlockRenderHandoffParams): boolean

Parameters:

Parameter Type Description
params RecordCodeBlockRenderHandoffParams The parameters for the function.

Returns: boolean — Whether a handoff was recorded: false when the new text is not exactly one code block.


Links to this page: