1.1 KiB
1.1 KiB
repo | tags |
---|---|
https://github.com/silverbulletmd/silverbullet | plug |
The Share plug provides infrastructure for sharing pages outside of your space. It standardizes the {[Share: Page Or Selection]} (bound to Cmd-s
or Ctrl-s
) to share the current page or selection in various ways.
Supported out of the box:
- Copy to clipboard as clean markdown (e.g. to copy into Github, Discourse or some other system that supports plain markdown). This makes the following modifications:
- It renders any Live Queries and Live Templates in place
- It replaces wiki links with regular links (using the SilverBullet URL as root host name)
- It removes Frontmatter
- It removes Attributes
- It removes Markdown/Anchors and replaces Markdown/Command links with regular back-tick’ed text.
- Copy to clipboard as rich text (e.g. to copy into Google Docs, Confluence or Word)
- Publish to Y: When the
$share
attribute is configured in Frontmatter, see below.
Publishers
Specific implementations for publishing are implemented in plugs, specifically:
plug where shareSupport = true render [[Library/Core/Query/Page]]