remarkable-youtube
Remarkable plugin renders YouTube links as iframe.
Installation
-
npm:
npm install --save-dev remarkable-youtube
-
yarn:
yarn add -D remarkable-youtube
Usage
const Remarkable = ;const youtube = ;const md = ; md ;
In markdown files write link like:
[Video](youtube:YOUR_VIDEO_ID)
Options
className {String}
Additional class name to add on iframe element.
origin {String}
Specify web-site origin parameter.
related {Boolean}
Specify if YouTube player should show related videos at the end of a playback.
attr {String}
Specify the attribute name to use for source. Default value src
. Could be used to make videos lazy loaded, for example.