Skip to content

breuleux/quaint-youtube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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:

youtube :: dQw4w9WgXcQ

That will display the video at 640x390. If you want another size, you can write it after an @ sign, just like this:

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.

About

Embed YouTube videos in a Quaint document

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published