import { toggleMark } from "prosemirror-commands"; import { UxCommand } from "../constants"; import { schema } from "../schema"; import { Command } from "../types"; export const toggle: Command = toggleMark(schema.marks.s); export const ux = { [UxCommand.Strikethrough]: toggle };