UNPKG

markdawn

Version:

(multi)markdown for paged documents. Outputs to pdf

18 lines (17 loc) 868 B
/** * generate the pdf document with the following input * @param text the markdwon text to insert in the docuement * @param opts object containing configuration keys for generating the pdf * - index: path to the index.html file that defines a theme * - format: (e.g. "Letter", "A4") overrides the format specified in the theme * - out: name of output file * - theme: name of a preconfigured theme to use (it has priority over the `index` property) * - contentDir: content directory to take the content source from * @return the html that generates the pdf, useful for debugging purposes */ export declare function generate(text: any, opts: any): Promise<string>; /** * get the list of preconfigured thems that can be used * @return a list of strings, each string representing a name of a theme */ export declare function getThemes(): string[];