xLog/src/editor/Italic.tsx

11 lines
235 B
TypeScript

import { ICommand, wrapExecute } from "."
export const Italic: ICommand = {
name: "italic",
label: "Italic",
icon: "i-mingcute:italic-line",
execute: ({ view }) => {
wrapExecute({ view, prepend: "_", append: "_" })
},
}