InsertCodeBlockParams
Options for insertAfterCodeBlock / insertBeforeCodeBlock.
Import:
import type { InsertCodeBlockParams } from 'obsidian-dev-utils/obsidian/markdown-code-block-processor';Signature:
export interface InsertCodeBlockParams extends GetCodeBlockMarkdownInfoParamsExtends: GetCodeBlockMarkdownInfoParams
Properties
| Property | Type | Description |
|---|---|---|
| app | App | An Obsidian app instance. (Inherited from GetCodeBlockMarkdownInfoParams) |
| ctx | MarkdownPostProcessorContext | A MarkdownPostProcessorContext object.(Inherited from GetCodeBlockMarkdownInfoParams) |
| el | HTMLElement | A HTMLElement representing the code block.(Inherited from GetCodeBlockMarkdownInfoParams) |
| lineOffset? | number | A number of lines to offset the insertion by. |
| resourceLockComponent | null | ResourceLockComponent | The resource-lock component used to lock the note while it is being modified. |
| shouldPreserveLinePrefix? | boolean | Whether to preserve the line prefix of the code block. |
| source | string | A source of the code block. (Inherited from GetCodeBlockMarkdownInfoParams) |
| text | string | A text to insert after the code block. |
Links to this page: