@mdast2docx/image
Version:
MDAST to DOCX plugin for resolving and embedding images. Supports base64, URLs, and custom resolvers for seamless DOCX image integration.
8 lines (7 loc) • 321 B
TypeScript
import type { IImageOptions } from "docx";
import { IDefaultImagePluginOptions } from ".";
import { SVG } from "@m2d/core";
/**
* Converts SVG into fallback raster image (PNG/JPG/etc.) for DOCX insertion.
*/
export declare const handleSvg: (svgNode: SVG, options: IDefaultImagePluginOptions) => Promise<IImageOptions>;