prosemirror-docx
Version:
Export from a prosemirror document to Microsoft word
18 lines (17 loc) • 731 B
TypeScript
/// <reference types="node" />
/// <reference types="node" />
import { Document, INumberingOptions, ISectionOptions } from 'docx';
import { Node as ProsemirrorNode } from 'prosemirror-model';
import { IFootnotes } from './types';
export declare function createShortId(): string;
export declare function createDocFromState(state: {
numbering: INumberingOptions['config'];
children: ISectionOptions['children'];
footnotes?: IFootnotes;
}): Document;
export declare function writeDocx(doc: Document,
/**
* @deprecated use `.then()` or `await` instead
*/
write?: ((buffer: Buffer) => void) | ((buffer: Buffer) => Promise<void>)): Promise<Buffer>;
export declare function getLatexFromNode(node: ProsemirrorNode): string;