Files
tiptap/docs/src/docPages/api/extensions/code.md
Hans Pagel 8e2d1716fc minor fixes
2020-09-23 09:31:05 +02:00

903 B
Raw Blame History

Code

The Code extensions enables you to use the <code> HTML tag in the editor. If you paste in text with <code> tags it will rendered accordingly.

Type something with `back-ticks around` and it will magically transform to inline code while you type.

Options

Option Type Default Description
class string Add a custom class to the rendered HTML tag.

Commands

Command Options Description
code Mark text as inline code.

Keyboard shortcuts

  • Alt + `

Source code

packages/extension-code/

Usage