UNPKG

md-html-to-pdf

Version:

CLI tool for converting Markdown files or Html files to PDF.

30 lines (29 loc) 740 B
import { Config } from "./config"; type CliArgs = typeof import("../cli").cliFlags; type Input = { path: string; } | { content: string; } | { html: string; }; /** * Convert markdown to html. */ export declare const convertMdToHtml: (input: Input, config: Config, args?: CliArgs) => Promise<{ html: string; config: Config; }>; /** * Convert markdown to pdf. */ export declare const convertMdToPdf: (input: Input, config: Config, args?: CliArgs) => Promise<import("./generate-output").Output>; /** * Convert markdowns to pdfs. */ export declare const convertMdsToPdfs: (params: { input: Input; config: Config; args?: CliArgs; }[]) => Promise<import("./generate-output").Output[] | undefined>; export {};