Skip to content

RemoveCodeBlockParams

Options for removeCodeBlock.

Import:

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

Signature:

export interface RemoveCodeBlockParams 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)
resourceLockComponentnull | ResourceLockComponentThe resource-lock component used to lock the note while it is being modified.
shouldKeepGap?booleanWhether to keep the gap after removing the code block.
sourcestringA source of the code block.
(Inherited from GetCodeBlockMarkdownInfoParams)

Links to this page: