class MdjsClass {
constructor(customRender?: ClassMdjsRenderer);
static MdjsRenderer: ClassMdjsRendererStatic;
static md2html: Mdjs_md2html;
static escapedHTML: Mdjs_escapedHTML;
md2html: Mdjs_md2html;
};
type Mdjs_md2html = (md: string | Buffer | Object, options?: MdjsParseOptions) => string;
type Mdjs_escapedHTML = (str: string) => string;
type MdjsParseOptions = {
/**
* insert
to each new line in paragraphs
* default value: false
*/
alwaysNewline?: boolean;
};
type MdjsLinkObject = {
url: string;
title?: string;
text?: string;
/**
* same with text
*/
content?: string;
};
type ClassMdjsRendererStatic = {
new(): ClassMdjsRenderer;
prototype: ClassMdjsRenderer;
};
type ClassMdjsRenderer = {
addReferenceLinkProvider(provider: (name: string) => string | MdjsLinkObject): void;
_resolveRefLink(referName: string): string | MdjsLinkObject;
tag: {
/** '
', '
'] */ p: string[]; /** ['', '']; */ quote: string[]; /** ['
', '']; */
inlineCode: string[];
/** ['', '']; */
codeBlock: string[];
/** ['