silverbullet/plugs/markdown/markdown.plug.yaml

33 lines
603 B
YAML
Raw Permalink Normal View History

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