UNPKG

@juspay/neurolink

Version:

The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002

24 lines (23 loc) • 783 B
/** * HTML to Markdown conversion for document processors. * * Scoped deliberately to the small, well-formed HTML subset that document * converters emit (mammoth for DOCX): headings, paragraphs, emphasis, links, * images, lists, block quotes, preformatted text and tables. It is not a * general-purpose web-page converter, which is why the repository gains no * dependency for it. * * @module utils/htmlToMarkdown */ /** * Convert an HTML fragment to Markdown. * * @param html - HTML produced by a document converter * @returns Markdown text, or an empty string when the fragment has no content * * @example * ```typescript * htmlToMarkdown("<h1>Title</h1><p>Body</p>"); // "# Title\n\nBody" * ``` */ export declare function htmlToMarkdown(html: string): string;