1
0
silverbullet/plugs/markdown/markdown.plug.yaml

32 lines
602 B
YAML
Raw Normal View History

2022-04-26 17:04:36 +00:00
name: markdown
2022-10-14 13:11:33 +00:00
assets:
- "assets/*"
2022-03-28 13:25:05 +00:00
functions:
2023-10-29 09:02:50 +00:00
# API
2023-11-02 11:35:30 +00:00
expandCodeWidgets:
path: api.ts:expandCodeWidgets
markdownToHtml:
path: api.ts:markdownToHtml
2023-10-29 09:02:50 +00:00
# User facing
2022-04-04 13:25:07 +00:00
toggle:
path: "./markdown.ts:togglePreview"
2022-03-28 13:25:05 +00:00
command:
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:
path: "./preview.ts:updateMarkdownPreview"
2023-08-26 06:31:51 +00:00
env: client
2022-04-04 13:25:07 +00:00
events:
- plug:load
- editor:updated
2022-07-18 14:48:36 +00:00
- editor:pageLoaded
- editor:pageReloaded
previewClickHandler:
path: "./preview.ts:previewClickHandler"
events:
2023-01-13 14:41:29 +00:00
- preview:click