Skip to content

quacksouls/honkit-plugin-youtube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HonKit plugin: youtube

Link to a YouTube video in HonKit.

Installation

Install via npm:

npm install honkit-plugin-youtube --save-dev

Add the plugin to your book.json:

{
    plugins: [ "youtube" ]
}

Usage

Link to a YouTube video as follows:

{% youtube id="video_id", title="video_title" %}{% endyoutube %}

Here is an example:

{% youtube id="p3G5IXn0K7A", title="The Hamsterdance Song" %}{% endyoutube %}

The video title might have double quotation marks. You should backslash escape each double quotation mark as follows:

{% youtube id="p3G5IXn0K7A", title="The \"Hamsterdance\" Song" %}{% endyoutube %}