Files
xLog/src/editor/Strikethrough.tsx
T
2022-06-01 00:58:02 +08:00

11 lines
255 B
TypeScript

import { ICommand, wrapExecute } from "."
export const Strikethrough: ICommand = {
name: "strikethrough",
label: "Strikethrough",
icon: "i-bi:type-strikethrough",
execute: (view) => {
wrapExecute({ view, prepend: "~~", append: "~~" })
},
}