quacksouls / honkit-plugin-youtube

Link to a YouTube video in HonKit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 %}

About

Link to a YouTube video in HonKit

License:Apache License 2.0


Languages

Language:JavaScript 100.0%