Options accepted by the markdown-it HTML5 media plugin. The translation callback is wired up by util/md.ts to localize captions.

interface Html5MediaOptions {
    translateFn?: (
        locale: string,
        messageKey: string,
        messageParams?: unknown[],
    ) => string;
}

Properties

Properties

translateFn?: (
    locale: string,
    messageKey: string,
    messageParams?: unknown[],
) => string