mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-05-01 12:38:12 +08:00
848 B
848 B
Bilibili Video
Embed Bilibili videos in your markdown.
Configuration
Enable the feature in .vuepress/config.ts:
export default defineUserConfig({
theme: plumeTheme({
markdown: {
bilibili: true,
},
})
})
Syntax
Simple syntax (using BVID):
@[bilibili](bvid)
With options:
@[bilibili p1 autoplay time="0" width="100%" height="400px" ratio="16:9"](bvid aid cid)
Parameters:
bvid: Video BV ID (can be omitted ifaidandcidare provided)aid: Video AIDcid: Video CIDpX: Page number (e.g.,p1,p2)autoplay: Enable autoplaytime: Start time (seconds ormm:ss/hh:mm:ss)width: Video widthheight: Video heightratio: Video aspect ratio (default16:9)
Example
@[bilibili](BV1EZ42187Hg)