UNPKG

md-to-json-converter

Version:

Converts your markdown files to a single json file so that you can use it as a static api.

13 lines (12 loc) 460 B
import { Remarkable } from 'remarkable'; import type { JsonObj } from './builder'; declare type RemarkableMeta = Record<string, any>; export declare type RemarkableParser = Remarkable & RemarkableMeta; interface MdToJSONConverterOptions { contentPath: string; outputPath: string; remarkableOptions?: Remarkable.Options; raw?: boolean; } export declare const converteMdToJSON: (options: MdToJSONConverterOptions) => Promise<JsonObj>; export {};