YouTube Video
About 213 words
Overview
The theme provides the capability to embed YouTube videos.
This feature is powered by vuepress-plugin-md-power.
Configuration
This feature is disabled by default. You need to enable it in the theme configuration.
.vuepress/config.ts
export default defineUserConfig({
theme: plumeTheme({
markdown: {
youtube: true,
},
})
})Syntax
Simple syntax:
@[youtube](id)More options:
@[youtube autoplay loop start="0" end="0" width="100%" height="400px" ratio="16:9"](id)Parameter Description:
Optional
Type:
number | stringVideo playback start time in seconds, or in mm:ss or hh:mm:ss format
Optional
Type:
number | stringVideo playback end time in seconds, or in mm:ss or hh:mm:ss format
Examples
Widescreen Video
Input:
@[youtube](0JJPfz5dg20)Output:
