@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
18 lines (17 loc) • 548 B
TypeScript
interface RemarkVideoOptions {
/**
* 支持的视频标签名,默认为 ['video']
*/
videoTags?: string[];
}
/**
* Remark plugin to handle <video> tags in markdown text
* This plugin converts <video> tags to proper video elements
* without requiring allowHtml to be enabled
*
* @example
* <video src="https://example.com/video.mp4" />
* <video src="https://example.com/video.mp4" controls width="400" height="300" />
*/
export declare const remarkVideo: (options?: RemarkVideoOptions) => (tree: any) => void;
export {};