open-agreements
Version:
Open-source legal template filling CLI and library
16 lines • 859 B
TypeScript
import type { DocumentViewNode } from './document_view.js';
import type { Footnote } from './footnotes.js';
export declare function inlineTagsToMarkdown(text: string): string;
export interface SerializeMarkdownOptions {
/** Reserved for future knobs (heading promotion, table policy). Currently unused. */
readonly _reserved?: never;
}
/**
* Serialize a structured document view to GitHub-Flavored Markdown.
*
* @param nodes Block nodes from `buildDocumentView({ showFormatting: true }).nodes`.
* @param footnotes Footnotes from `DocxDocument.getFootnotes()` (already sorted by
* `displayNumber`); appended as `[^n]: …` definitions.
*/
export declare function serializeToMarkdown(nodes: DocumentViewNode[], footnotes?: Footnote[], _opts?: SerializeMarkdownOptions): string;
//# sourceMappingURL=serialize_markdown.d.ts.map