Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.02 KB

README.md

File metadata and controls

49 lines (33 loc) · 1.02 KB

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