Skip to content

Editor.toggleMarkdownFormatting method

Editor › toggleMarkdownFormatting

Unofficial

Applies specified markdown syntax to selected text or word under cursor.

Signature:

toggleMarkdownFormatting(syntax: "bold" | "code" | "comment" | "highlight" | "italic" | "math" | "strikethrough"): void

Parameters:

Parameter Type Description
syntax "bold" | "code" | "comment" | "highlight" | "italic" | "math" | "strikethrough" The markdown syntax to apply.

Returns: void