Skip to content

purrmd


purrmd / commands / setHeadingCommand

Function: setHeadingCommand()

setHeadingCommand(level): StateCommand

Defined in: packages/core/src/core/command/heading.ts:90

Create a command to set the current selection to headings of a specific level or paragraphs if level is 0.

Parameters

level

number

Heading level (1-6) or 0 for paragraph

Returns

StateCommand

StateCommand