legal-markdown-js
Version:
Node.js implementation of LegalMarkdown for processing legal documents with markdown and YAML - Complete feature parity with Ruby version
14 lines • 524 B
TypeScript
export interface DocxBrowserOptions {
title?: string;
format?: 'A4' | 'Letter' | 'Legal';
landscape?: boolean;
}
/**
* Generate a DOCX Blob from HTML and CSS strings - browser-safe.
*
* Does not touch the filesystem. CSS is accepted as a string instead
* of a file path. Returns a Blob that can be downloaded directly via
* URL.createObjectURL.
*/
export declare function generateDocxBuffer(html: string, css: string, options?: DocxBrowserOptions): Promise<Blob>;
//# sourceMappingURL=docx-browser.d.ts.map