Skip to Content

Code

Two code plugins are available: inline code and fenced code blocks.

Usage

import { availablePlugins } from "@inkstream/starter-kit" <RichTextEditor plugins={[availablePlugins.code, availablePlugins.codeBlock]} toolbarLayout={['code', 'codeBlock']} />

Inline code

Wraps selected text in a code mark. Shortcut: Mod-`

Code block

Converts the current paragraph to a fenced code block. Input rule: type ``` at the start of a line.