712 B
712 B
YouTube Video
Embed YouTube videos in your markdown.
Configuration
Enable the feature in .vuepress/config.ts:
export default defineUserConfig({
theme: plumeTheme({
markdown: {
youtube: true,
},
})
})
Syntax
Simple syntax:
@[youtube](id)
With options:
@[youtube autoplay loop start="0" end="0" width="100%" height="400px" ratio="16:9"](id)
Parameters:
id: Video IDautoplay: Enable autoplayloop: Enable loop playbackstart: Start timeend: End timewidth: Video widthheight: Video heightratio: Video aspect ratio (default16:9)
Example
@[youtube](0JJPfz5dg20)