1
0
silverbullet/plugs/markdown/markdown.plug.yaml
2022-10-14 15:53:51 +02:00

21 lines
422 B
YAML

name: markdown
imports:
- https://get.silverbullet.md/global.plug.json
assets:
- "*.css"
functions:
toggle:
path: "./markdown.ts:togglePreview"
command:
name: "Markdown Preview: Toggle"
key: Ctrl-p
mac: Cmd-p
preview:
path: "./preview.ts:updateMarkdownPreview"
env: client
events:
- plug:load
- editor:updated
- editor:pageLoaded
- editor:pageReloaded