a56e14bff1
Fixes #261
38 lines
786 B
YAML
38 lines
786 B
YAML
name: markdown
|
|
imports:
|
|
- https://get.silverbullet.md/global.plug.json
|
|
assets:
|
|
- "assets/*"
|
|
requiredPermissions:
|
|
- fs
|
|
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
|
|
previewClickHandler:
|
|
path: "./preview.ts:previewClickHandler"
|
|
env: client
|
|
events:
|
|
- preview:click
|
|
|
|
# $share: file:* publisher for markdown files
|
|
sharePublisher:
|
|
path: ./share.ts:sharePublisher
|
|
events:
|
|
- share:file
|
|
|
|
markdownWidget:
|
|
path: ./widget.ts:markdownWidget
|
|
codeWidget: markdown
|