Autoformat Kit

Installation

No MCP yet? Connect your agent.

Features

  • Markdown shortcuts owned by the feature plugins that understand them.
  • Text substitutions powered by local createTextSubstitutionInputRule(...) definitions.
  • Explicit activation through inputRules.
  • No hidden default shortcut behavior.

Usage

Installation

The fastest way to add common text substitutions is with AutoformatKit.

Add Kit

import { createPlateEditor } from "platejs/react";
import { AutoformatKit } from "@/components/editor/plugins/autoformat-kit";

const editor = createPlateEditor({
  plugins: [
    // ...otherPlugins,
    ...AutoformatKit,
  ],
});