silverbullet/plugs/markdown/markdown.plug.yaml

15 lines
303 B
YAML
Raw Normal View History

2022-03-28 21:25:05 +08:00
functions:
2022-04-04 21:25:07 +08:00
toggle:
path: "./markdown.ts:togglePreview"
2022-03-28 21:25:05 +08:00
command:
2022-04-04 21:25:07 +08:00
name: "Toggle Markdown Preview"
2022-04-05 00:33:13 +08:00
key: Ctrl-p
mac: Cmd-p
2022-04-04 21:25:07 +08:00
preview:
path: "./markdown.ts:updateMarkdownPreview"
env: client
events:
- plug:load
- editor:updated
- editor:pageSwitched