2022-04-26 17:04:36 +00:00
|
|
|
name: markdown
|
2022-10-13 13:16:18 +00:00
|
|
|
imports:
|
|
|
|
- https://get.silverbullet.md/global.plug.json
|
2022-10-14 13:11:33 +00:00
|
|
|
assets:
|
2022-11-01 14:01:28 +00:00
|
|
|
- "assets/*"
|
2022-11-24 11:04:00 +00:00
|
|
|
requiredPermissions:
|
|
|
|
- fs
|
2022-03-28 13:25:05 +00:00
|
|
|
functions:
|
2022-04-04 13:25:07 +00:00
|
|
|
toggle:
|
|
|
|
path: "./markdown.ts:togglePreview"
|
2022-03-28 13:25:05 +00:00
|
|
|
command:
|
2022-08-01 15:08:22 +00:00
|
|
|
name: "Markdown Preview: Toggle"
|
2022-04-04 16:33:13 +00:00
|
|
|
key: Ctrl-p
|
|
|
|
mac: Cmd-p
|
2022-04-04 13:25:07 +00:00
|
|
|
preview:
|
2022-04-13 12:46:52 +00:00
|
|
|
path: "./preview.ts:updateMarkdownPreview"
|
2022-04-04 13:25:07 +00:00
|
|
|
env: client
|
|
|
|
events:
|
|
|
|
- plug:load
|
|
|
|
- editor:updated
|
2022-07-18 14:48:36 +00:00
|
|
|
- editor:pageLoaded
|
|
|
|
- editor:pageReloaded
|
2022-11-01 14:01:28 +00:00
|
|
|
previewClickHandler:
|
|
|
|
path: "./preview.ts:previewClickHandler"
|
|
|
|
env: client
|
|
|
|
events:
|
2022-11-24 11:04:00 +00:00
|
|
|
- preview:click
|
|
|
|
|
|
|
|
# $share: file:* publisher for markdown files
|
|
|
|
sharePublisher:
|
|
|
|
path: ./share.ts:sharePublisher
|
|
|
|
events:
|
2022-12-22 15:20:05 +00:00
|
|
|
- share:file
|
|
|
|
|
|
|
|
markdownWidget:
|
|
|
|
path: ./widget.ts:markdownWidget
|
|
|
|
codeWidget: markdown
|