legal-markdown-js
Version:
Node.js implementation of LegalMarkdown for processing legal documents with markdown and YAML - Complete feature parity with Ruby version
25 lines • 911 B
TypeScript
import { type HtmlGeneratorOptions } from './html-generator.js';
import type { MarkdownString } from '../../types/content-formats.js';
interface MarginOptions {
top?: string;
right?: string;
bottom?: string;
left?: string;
}
export interface DocxGeneratorOptions extends HtmlGeneratorOptions {
format?: 'A4' | 'Letter' | 'Legal';
landscape?: boolean;
margin?: MarginOptions;
cssPath?: string;
version?: string;
basePath?: string;
headerTemplate?: string;
footerTemplate?: string;
}
export declare class DocxGenerator {
generateDocx(markdownContent: MarkdownString, outputPath: string, options?: DocxGeneratorOptions): Promise<Buffer>;
generateDocxFromHtml(htmlContent: string, outputPath: string, options?: DocxGeneratorOptions): Promise<Buffer>;
}
export declare const docxGenerator: DocxGenerator;
export {};
//# sourceMappingURL=docx-generator.d.ts.map