@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
20 lines • 649 B
text/typescript
//#region src/Markdown/plugins/remarkVideo.d.ts
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" />
*/
declare const remarkVideo: (options?: RemarkVideoOptions) => (tree: any) => void;
//#endregion
export { remarkVideo };
//# sourceMappingURL=remarkVideo.d.mts.map