Skip to main content
The Bold extension allows you to mark text as bold. Text is rendered as a <strong> HTML element by default.

Installation

Usage

Keyboard Shortcuts

  • Mod-b or Mod-B - Toggle bold formatting

Markdown Support

The extension supports markdown syntax for bold text:
  • Type **text** to create bold text
  • Type __text__ to create bold text

Configuration Options

Record<string, any>
default:"{}"
HTML attributes to add to the bold element.

Commands

setBold()

Set a bold mark on the current selection.

toggleBold()

Toggle the bold mark on the current selection.

unsetBold()

Remove the bold mark from the current selection.

Source Code

View the source code on GitHub: