Strikethrough style plugin
$ yarn add @aomao/plugin-strikethrough
Add to engine
import Engine, {EngineInterface} from'@aomao/engine';import Strikethrough from'@aomao/plugin-strikethrough';new Engine(...,{ plugins:[Strikethrough] })
The default shortcut key is mod+shift+x
, and multiple shortcut keys are passed in as an array
//hotkey,hotkey?: string | Array<string>;//Use configurationnew Engine(...,{config:{"strikethrough":{//Modify shortcut keyshotkey: "shortcut key"}}})
engine.command.execute('strikethrough');//Use command to execute query current status, return boolean | undefinedengine.command.queryState('strikethrough');