Fixes #258
This commit is contained in:
@@ -6,6 +6,7 @@ release.
|
||||
## Next
|
||||
* Fixed copy & paste, drag & drop of attachments in the [[Desktop]] app
|
||||
* Continuous [[Sync]]
|
||||
* Support for embedding [[Markdown/Code Widgets]].
|
||||
|
||||
---
|
||||
## 0.2.8
|
||||
|
||||
@@ -8,6 +8,7 @@ We mentioned markdown _extensions_, here are the ones currently supported:
|
||||
* Double-bracketed wiki links: `[[link to page]]`, optionally with aliases `[[link to page|alias]]`.
|
||||
* Hashtags, e.g. `#mytag`.
|
||||
* Command link syntax: `{[Stats: Show]}` rendered into a clickable button {[Stats: Show]}.
|
||||
* [[Markdown/Code Widgets]]
|
||||
* [Tables](https://www.markdownguide.org/extended-syntax/#tables)
|
||||
* [Fenced code blocks](https://www.markdownguide.org/extended-syntax/#fenced-code-blocks)
|
||||
* [Task lists](https://www.markdownguide.org/extended-syntax/#task-lists)
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
Code widgets are a SilverBullet specific “extensions” to [[Markdown]]. Technically, it’s not an extension — it just gives new semantics to markdown’s native fenced code blocks — code blocks that start with a triple backtick, specifying a programming language.
|
||||
|
||||
Currently, SilverBullet provides two code widgets as part of its built in [[🔌 Plugs]]:
|
||||
|
||||
* `embed`
|
||||
* `markdown`
|
||||
|
||||
In addition, plugs like [[🔌 KaTeX]] and [[🔌 Mermaid]] add additional ones.
|
||||
|
||||
## Embed
|
||||
This allows you to embed internet content into your page inside of an iframe. This is useful to, for instance, embed youtube videos. In fact, there is specific support for those.
|
||||
|
||||
Two examples.
|
||||
|
||||
First, embedding the silverbullet.md website into the silverbullet.md website (inception!):
|
||||
|
||||
```embed
|
||||
url: https://silverbullet.md
|
||||
```
|
||||
|
||||
and a Youtube video:
|
||||
|
||||
```embed
|
||||
url: https://www.youtube.com/watch?v=VemS-cqAD5k
|
||||
```
|
||||
|
||||
Note, there is specific support for youtube videos — it automatically will set width, height and replace the URL with an embed URL.
|
||||
|
||||
The body of an `embed` block is written in [[YAML]] and supports the following attributes:
|
||||
|
||||
* `url` (mandatory): the URL of the content to embed
|
||||
* `height` (optional): the height of the embedded page in pixels
|
||||
* `width` (optional): the width of the embedded page in pixels
|
||||
|
||||
## Markdown
|
||||
You can embed markdown inside of markdown and live preview it. Is this useful? 🤷 not really, it’s more of a demo of how this works. Nevertheless, to each their own, here’s an example:
|
||||
|
||||
```markdown
|
||||
This is going to be **bold**
|
||||
```
|
||||
@@ -20,8 +20,11 @@ Now that we got that out of the way, let’s have a look at some of SilverBullet
|
||||
* **Self-hosted**: you own your data. All content is stored as plain files in a folder on disk. Back up, sync, edit, publish, script with any additional tools you like.
|
||||
* SilverBullet is [open source, MIT licensed](https://github.com/silverbulletmd/silverbullet) software.
|
||||
|
||||

|
||||
To get a good feel of what SilverBullet is capable of, [have a look at this introduction video](https://youtu.be/VemS-cqAD5k).
|
||||
To get a good feel of what SilverBullet is capable of, have a look at this introduction video.
|
||||
|
||||
```embed
|
||||
url: https://youtu.be/VemS-cqAD5k
|
||||
```
|
||||
|
||||
## Try it
|
||||
Here’s the kicker:
|
||||
|
||||
Reference in New Issue
Block a user