@refinex-md/extensions
v0.1.1
Published
Official Refinex MD Editor extensions for slash commands, menus, upload, ingest, and rich blocks.
Downloads
612
Readme
@refinex-md/extensions
官方扩展集合,包含 slash command、bubble menu、block handle、block menu、upload service、ingest pipeline 和 rich blocks。
安装
pnpm add @refinex-md/extensions如需预发布版本,显式使用 @next:
pnpm add @refinex-md/extensions@next最短示例
import { createDefaultSlashCommands, createSlashCommandPlugin } from '@refinex-md/extensions'
const slash = createSlashCommandPlugin({
commands: createDefaultSlashCommands(),
})将插件传给 createEditor({ extensions: [...] }) 或框架适配器的 extensions 属性。
