legal-markdown-js
Version:
Node.js implementation of LegalMarkdown for processing legal documents with markdown and YAML - Complete feature parity with Ruby version
17 lines • 870 B
TypeScript
import * as cheerio from 'cheerio';
import { Paragraph, Table, type INumberingOptions } from 'docx';
import type { AnyNode } from 'domhandler';
import type { DocxStylesPreset } from './css-style-adapter.js';
interface BlockContext {
inTableOfContents: boolean;
}
export interface HtmlToDocxConversionOptions {
styles: DocxStylesPreset;
includeHighlighting: boolean;
basePath?: string;
}
export declare function nodesToBlocks($: cheerio.CheerioAPI, nodes: AnyNode[], options: HtmlToDocxConversionOptions, context?: BlockContext): Promise<Array<Paragraph | Table>>;
export declare function convertHtmlToDocxBlocks(htmlContent: string, options: HtmlToDocxConversionOptions): Promise<Array<Paragraph | Table>>;
export declare function createDefaultNumbering(styles?: DocxStylesPreset): INumberingOptions;
export {};
//# sourceMappingURL=html-to-docx.d.ts.map