Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/breuleux/quaint-youtube
Embed YouTube videos in a Quaint document
https://github.com/breuleux/quaint-youtube
quaint youtube youtube-player
Last synced: 9 days ago
JSON representation
Embed YouTube videos in a Quaint document
- Host: GitHub
- URL: https://github.com/breuleux/quaint-youtube
- Owner: breuleux
- Created: 2016-01-27T01:11:20.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-02T05:34:40.000Z (almost 8 years ago)
- Last Synced: 2024-10-18T18:54:15.960Z (28 days ago)
- Topics: quaint, youtube, youtube-player
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# quaint-youtube
Embed YouTube videos in Quaint documents
## Install
In your Quaint project directory, run the command:
quaint --setup youtube
## Sample usage
Use the `youtube` macro with a video ID:
```quaint
youtube :: dQw4w9WgXcQyoutube :: dQw4w9WgXcQ @ 300x300
@@youtube:dQw4w9WgXcQ
```You can find the video ID in the YouTube URL, it's after `v=` usually,
and is strictly alphanumeric.## Macro
The `youtube` macro is used with a video id and optionally a size
directive. The simplest command to display a video is this one:```quaint
youtube :: dQw4w9WgXcQ
```That will display the video at 640x390. If you want another size, you
can write it after an `@` sign, just like this:```quaint
youtube :: dQw4w9WgXcQ @ 300x300
```Alternatively to the `youtube` macro, you can use the following link
syntax: `@@youtube:video_id`. There is no difference between the two
syntaxes.## Options
There are no options for this plugin.