import type { Plugin } from 'unified'; import type { Root, Element } from 'hast'; import { visit } from 'unist-util-visit'; import { detailsNode } from './detailsNode.js'; import { trackNode } from './trackNode.js'; export type RehypeVideoOptions = { /** * URL suffix verification. * @default /\/(.*)(.mp4|.mov)$/ */ test?: RegExp | ((url: string) => boolean); /** * Support `
` tag to wrap