README
ulka-plugin-embed-youtube
Embed youtube video in your markdown
Installation
npm install ulka-plugin-embed-youtube
Add ulka-plugin-embed-youtube
to plugins array in ulka-config.js
// ulka-config.js
module.exports = {
...
plugins: [
...
"ulka-plugin-embed-youtube",
],
}
Usage
After the setup, you can embed youtube video in your markdown using inline code.
`youtube:https://www.youtube.com/watch?v=3GwjfUFyY6M`
`youtube:https://youtu.be/3GwjfUFyY6M`
`youtube:https://www.youtube.com/embed/3GwjfUFyY6M`
Customization
To customize ulka-plugin-embed-youtube
, you need to pass plugin as object to plugins array.
// ulka-config.js
module.exports = {
...
plugins: [
...
{
resolve: "ulka-plugin-embed-youtube",
options: {
width: "853",
height: "480",
frameborder: "0",
allow: "accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",
allowfullscreen: true,
}
},
],
}