ReplaceCodeBlockParams
Options for replaceCodeBlock.
Import:
import type { ReplaceCodeBlockParams } from '@mnaoumov/obsidian-lib/markdown-code-block-processor';Signature:
export interface ReplaceCodeBlockParams extends GetCodeBlockMarkdownInfoParamsExtends: GetCodeBlockMarkdownInfoParams
Properties
| Property | Type | Description |
|---|---|---|
| abortSignal? | AbortSignal | An abort signal to control the execution of the function. |
| app | App | An Obsidian app instance. (Inherited from GetCodeBlockMarkdownInfoParams) |
| codeBlockProvider | ValueProvider<string, ContentArguments> | Provides a new code block. |
| context | MarkdownPostProcessorContext | A MarkdownPostProcessorContext object. (Inherited from GetCodeBlockMarkdownInfoParams) |
| el | HTMLElement | A HTMLElement representing the code block.(Inherited from GetCodeBlockMarkdownInfoParams) |
| nextRenderState? | unknown | A state passed to the next render of the code block, which gets it from claimCodeBlockRenderHandoff. |
| resourceLockComponent | null | ResourceLockComponent | The resource-lock component used to lock the note while it is being modified. |
| shouldCarryFocusToNextRender? | boolean | Whether the next render of the code block may put the focus back where it is now inside el, through claimCodeBlockRenderHandoff. |
| shouldKeepGapWhenEmpty? | boolean | Whether to keep the gap when the new code block is empty. |
| shouldPreserveLinePrefix? | boolean | Whether to preserve the line prefix of the code block. |
| source | string | A source of the code block. (Inherited from GetCodeBlockMarkdownInfoParams) |
Links to this page: