@diplodoc/transform
Version:
A simple transformer of text in YFM (Yandex Flavored Markdown) to HTML
18 lines (17 loc) • 644 B
TypeScript
import type { MarkdownItPluginCb, MarkdownItPluginOpts } from '../typings';
import type { ImageOptions } from '../../typings';
interface ImageOpts extends MarkdownItPluginOpts {
assetsPublicPath: string;
inlineSvg?: boolean;
}
interface SVGOpts extends MarkdownItPluginOpts {
notFoundCb: (s: string) => void;
imageOpts: ImageOptions;
}
declare type Opts = SVGOpts & ImageOpts;
declare const index: MarkdownItPluginCb<Opts>;
declare function replaceSvgContent(content: string, options: ImageOptions): string;
declare const imagesPlugin: typeof index & {
replaceSvgContent: typeof replaceSvgContent;
};
export = imagesPlugin;