Files
xLog/src/editor/Code.tsx
T

11 lines
240 B
TypeScript

import { ICommand, wrapExecute } from "."
export const Code: ICommand = {
name: "code",
label: "Inline Code",
icon: "icon-[mingcute--code-line]",
execute: ({ view }) => {
wrapExecute({ view, prepend: "`", append: "`" })
},
}