UNPKG

render-gfm

Version:

Render GitHub Flavoured Markdown, with CSS for each of GitHub's themes.

13 lines (12 loc) 842 B
#!/usr/bin/env node /** * Render Markdown files (looks in the current working directory by default, if relative paths are specified) to the specified output directory. * @param {string[]} files An array of the Markdown file paths to render. Can be absolute or relative paths. * @param {string} outputDir The directory to write the rendered HTML to. If unspecified, the default is the folder "dist" in the current working directory. */ export declare function markdown(files: string[], outputDir?: string): Promise<void>; /** * Generate CSS files for each of GitHub's themes to the specified output directory. * @param {string} outputDir The directory to write the CSS files to. If unspecified, the default is the folder "dist/css" in the current working directory. */ export declare function themes(outputDir?: string): Promise<void>;