UNPKG

doc-to-readable

Version:

Universal document-to-markdown and section splitter for HTML, URLs, and PDFs.

11 lines (9 loc) 366 B
export interface ReadableSection { title: string | null; content: string; } export interface DocToReadableOptions { type: 'url' | 'html' | 'markdown'; } export function docToMarkdown(input: string, options?: DocToReadableOptions): Promise<string>; export function splitReadableDocs(input: string, options?: DocToReadableOptions): Promise<ReadableSection[]>;