Skip to content

Editor.insertBlock method

Editor › insertBlock

Unofficial

Wraps current line around specified characters.

Signature:

insertBlock(start: string, end: string): void

Parameters:

Parameter Type Description
start string The starting wrapper string.
end string The ending wrapper string.

Returns: void

Remarks:

Was added in a recent Obsidian update (1.4.0 update cycle).