1.2.0 • Published 7 years ago
gitbook-plugin-markdown-video v1.2.0
markdown video plugin for GitBook
Plugin for GitBook 3 which renders video videos detected in the book markdown.
How to install it?
You can use install via NPM:
$ npm install gitbook-plugin-markdown-video
And use it for your book with in the book.json:
{
"plugins": ["markdown-video"]
}
How to use it?
Just put the code into fenced code block and tag it video key word like this:
<video id="my-video" class="video-js" controls preload="auto" width="640" height="264"
poster="MY_VIDEO_POSTER.jpg" data-setup="{}">
<source src="MY_VIDEO.mp4" type='video/mp4'>
<source src="MY_VIDEO.webm" type='video/webm'>
<p class="vjs-no-js">
To view this video please enable JavaScript, and consider upgrading to a web browser that
<a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
</p>
</video>
Thanks
Thanks to author of the gitbook-plugin-local-video!