UNPKG

markdown-to-standalone-html

Version:

Markdown to standalone HTML converter. It generates a standalone HTML with all CSS and images embedded, browsable responsible TOC, math support (KATEX), code syntax highlighting (highlight.js), and rendering of lyrics with chords

12 lines (11 loc) 306 B
export interface Plugin { name: string; options?: object; } interface Options { basePath: string; template: string; plugins: Plugin[]; } export default function markdownToStandAloneHtml(mdContents: string, { basePath, template, plugins }: Partial<Options>): Promise<string>; export {};