silverbullet/plugs/markdown/markdown.plug.yaml

33 lines
704 B
YAML
Raw Permalink Normal View History

2022-04-27 01:04:36 +08:00
name: markdown
2022-10-13 21:16:18 +08:00
imports:
- https://get.silverbullet.md/global.plug.json
2022-10-14 21:11:33 +08:00
assets:
- "assets/*"
2022-11-24 19:04:00 +08:00
requiredPermissions:
- fs
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:
name: "Markdown Preview: Toggle"
2022-04-05 00:33:13 +08:00
key: Ctrl-p
mac: Cmd-p
2022-04-04 21:25:07 +08:00
preview:
path: "./preview.ts:updateMarkdownPreview"
2022-04-04 21:25:07 +08:00
env: client
events:
- plug:load
- editor:updated
2022-07-18 22:48:36 +08:00
- editor:pageLoaded
- editor:pageReloaded
previewClickHandler:
path: "./preview.ts:previewClickHandler"
env: client
events:
2022-11-24 19:04:00 +08:00
- preview:click
# $share: file:* publisher for markdown files
sharePublisher:
path: ./share.ts:sharePublisher
events:
- share:file