Skip to content

Editor.setHeading method

Editor › setHeading

Unofficial

Sets the markdown heading level of the line(s) under the cursor.

Signature:

setHeading(level: number): void

Parameters:

ParameterTypeDescription
levelnumberThe heading level (1 to 6), or 0 to remove the heading.

Returns: void