https://github.com/1cgonza/gitbook-plugin-noembed
Gitbook plugin: Get any video or iframe card supported by Noembed
https://github.com/1cgonza/gitbook-plugin-noembed
Last synced: 2 months ago
JSON representation
Gitbook plugin: Get any video or iframe card supported by Noembed
- Host: GitHub
- URL: https://github.com/1cgonza/gitbook-plugin-noembed
- Owner: 1cgonza
- Created: 2017-01-10T17:49:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-23T14:00:08.000Z (over 8 years ago)
- Last Synced: 2024-04-23T02:22:34.123Z (about 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gitbook plugin Noembed
Get any video or iframe card supported by [Noembed](https://noembed.com/#supported-sites). (Vimeo, YouTube, Facebook, Twitter, Instagram, etc)
*If the sites you need to embed are not supported by Noembed, you can try [gitbook-plugin-iframely](https://github.com/1cgonza/gitbook-plugin-iframely). They claim to support 1,800+ sites but you need at least a free account to get an API key.*
## Installation
Add "noembed" to your plugins in `book.json`.```js
{
"plugins": ["noembed"]
}
```## Usage
- You can use two filters: `noembed` or `video`. *(At the moment they both do exactly the same)*
- Make sure you wrap your URL around single or double quotes.```md
{{ 'https://vimeo.com/31942602' | noembed }}or
{{ 'https://vimeo.com/31942602' | video }}
```