1
0
silverbullet/plugs/markdown/markdown.plug.yaml
2023-11-02 12:35:30 +01:00

38 lines
767 B
YAML

name: markdown
assets:
- "assets/*"
functions:
# API
markdownContentWidget:
path: markdown_content_widget.ts:markdownContentWidget
expandCodeWidgets:
path: api.ts:expandCodeWidgets
markdownToHtml:
path: api.ts:markdownToHtml
# User facing
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"
events:
- preview:click
markdownWidget:
path: ./widget.ts:markdownWidget
codeWidget: markdown