Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 :: dQw4w9WgXcQ

youtube :: 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.