Skip to content

InsertCodeBlockParams

Options for insertAfterCodeBlock / insertBeforeCodeBlock.

Import:

import type { InsertCodeBlockParams } from 'obsidian-dev-utils/obsidian/markdown-code-block-processor';

Signature:

export interface InsertCodeBlockParams extends GetCodeBlockMarkdownInfoParams

Extends: GetCodeBlockMarkdownInfoParams

Properties

PropertyTypeDescription
appAppAn Obsidian app instance.
(Inherited from GetCodeBlockMarkdownInfoParams)
ctxMarkdownPostProcessorContextA MarkdownPostProcessorContext object.
(Inherited from GetCodeBlockMarkdownInfoParams)
elHTMLElementA HTMLElement representing the code block.
(Inherited from GetCodeBlockMarkdownInfoParams)
lineOffset?numberA number of lines to offset the insertion by.
resourceLockComponentnull | ResourceLockComponentThe resource-lock component used to lock the note while it is being modified.
shouldPreserveLinePrefix?booleanWhether to preserve the line prefix of the code block.
sourcestringA source of the code block.
(Inherited from GetCodeBlockMarkdownInfoParams)
textstringA text to insert after the code block.

Links to this page: